PluginProbe
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance / 3.2.5
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance v3.2.5
4.7.0 4.6.1 4.6.0 4.5.5 4.5.4 4.5.3 4.5.2 3.2.20 3.2.21 3.2.22 3.2.3 3.2.5 3.2.6 3.2.7 3.2.9 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.7.0 3.7.1 All 111 releases
wp-optimize / vendor / rosell-dk / webp-convert / tests / bootstrap-webp-convert-test.php

bootstrap-webp-convert-test.php in WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance 3.2.5, at vendor/rosell-dk/webp-convert/tests/bootstrap-webp-convert-test.php

21 lines 897 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 require __DIR__ . '/../src-build/webp-convert.inc';
3
4 spl_autoload_register('webpconvert_disable_autoload', true, true);
5 function webpconvert_disable_autoload($class) {
6 //echo $class . "\n";
7 if (strpos($class, 'WebPConvert\\') === 0) {
8 if (strpos($class, 'WebPConvert\\Tests\\') !== 0) {
9 throw new \Exception(
10 'Autoloader was about to autoload a WebPConvert class. ' .
11 'But that means it was not included in the build! "' . $class . '"');
12 //require_once WEBPEXPRESS_PLUGIN_DIR . '/lib/classes/' . substr($class, 12) . '.php';
13 }
14 if (strpos($class, 'ImageMimeTypeGuesser\\') === 0) {
15 throw new \Exception(
16 'Autoloader was about to autoload a ImageMimeTypeGuesser class. ' .
17 'But that means it was not included in the build! "' . $class . '"');
18 }
19 }
20 }
21