|
@@ 1299-1306 (lines=8) @@
|
| 1296 |
|
}, 10, 2 ); |
| 1297 |
|
|
| 1298 |
|
// For test purposes, ALL images in the css are being inline with a 1x1 trans png string/datauri. |
| 1299 |
|
add_filter( 'autoptimize_filter_css_datauri_image', function( $base64array, $path ) { |
| 1300 |
|
$head = 'data:image/png;base64,'; |
| 1301 |
|
$data = 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII='; |
| 1302 |
|
|
| 1303 |
|
$result['full'] = $head . $data; |
| 1304 |
|
$result['base64data'] = $data; |
| 1305 |
|
return $result; |
| 1306 |
|
}, 10, 2 ); |
| 1307 |
|
|
| 1308 |
|
$instance = new autoptimizeStyles( $css_orig ); |
| 1309 |
|
$instance->setOption( 'datauris', true ); |
|
@@ 1383-1390 (lines=8) @@
|
| 1380 |
|
}, 10, 2 ); |
| 1381 |
|
|
| 1382 |
|
// For test purposes, ALL images in the css are being inlined with a 1x1 trans png string/datauri. |
| 1383 |
|
add_filter( 'autoptimize_filter_css_datauri_image', function( $base64array, $path ) { |
| 1384 |
|
$head = 'data:image/png;base64,'; |
| 1385 |
|
$data = 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII='; |
| 1386 |
|
|
| 1387 |
|
$result['full'] = $head . $data; |
| 1388 |
|
$result['base64data'] = $data; |
| 1389 |
|
return $result; |
| 1390 |
|
}, 10, 2 ); |
| 1391 |
|
|
| 1392 |
|
$instance = new autoptimizeStyles( $css_orig ); |
| 1393 |
|
$instance->setOption( 'datauris', true ); |