|
@@ 1292-1299 (lines=8) @@
|
| 1289 |
|
}, 10, 2 ); |
| 1290 |
|
|
| 1291 |
|
// For test purposes, ALL images in the css are being inline with a 1x1 trans png string/datauri. |
| 1292 |
|
add_filter( 'autoptimize_filter_css_datauri_image', function( $base64array, $path ) { |
| 1293 |
|
$head = 'data:image/png;base64,'; |
| 1294 |
|
$data = 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII='; |
| 1295 |
|
|
| 1296 |
|
$result['full'] = $head . $data; |
| 1297 |
|
$result['base64data'] = $data; |
| 1298 |
|
return $result; |
| 1299 |
|
}, 10, 2 ); |
| 1300 |
|
|
| 1301 |
|
$instance = new autoptimizeStyles( $css_orig ); |
| 1302 |
|
$instance->setOption( 'datauris', true ); |
|
@@ 1376-1383 (lines=8) @@
|
| 1373 |
|
}, 10, 2 ); |
| 1374 |
|
|
| 1375 |
|
// For test purposes, ALL images in the css are being inlined with a 1x1 trans png string/datauri. |
| 1376 |
|
add_filter( 'autoptimize_filter_css_datauri_image', function( $base64array, $path ) { |
| 1377 |
|
$head = 'data:image/png;base64,'; |
| 1378 |
|
$data = 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII='; |
| 1379 |
|
|
| 1380 |
|
$result['full'] = $head . $data; |
| 1381 |
|
$result['base64data'] = $data; |
| 1382 |
|
return $result; |
| 1383 |
|
}, 10, 2 ); |
| 1384 |
|
|
| 1385 |
|
$instance = new autoptimizeStyles( $css_orig ); |
| 1386 |
|
$instance->setOption( 'datauris', true ); |