WebP Express - Version 0.24.2

Version Description

(released: 25 Nov 2021) * Bugfix: In FileManager, the original image wasn't showing on all systems

Download this release

Release Info

Developer rosell.dk
Plugin Icon 128x128 WebP Express
Version 0.24.2
Comparing to
See all releases

Code changes from version 0.24.1 to 0.24.2

README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://ko-fi.com/rosell
4
  Tags: webp, images, performance
5
  Requires at least: 4.0
6
  Tested up to: 5.8
7
- Stable tag: 0.24.1
8
  Requires PHP: 5.6
9
  License: GPLv3
10
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
@@ -782,6 +782,10 @@ If you want to make sure that my coffee supplies don't run dry, you can even buy
782
 
783
  == Changelog ==
784
 
 
 
 
 
785
  = 0.24.1 =
786
  *(released: 24 Nov 2021)*
787
  * Bugfix: On some systems, the converter test run that is done when showing the settings page could result in an uncatched error.
@@ -866,6 +870,9 @@ For older releases, check out changelog.txt
866
 
867
  == Upgrade Notice ==
868
 
 
 
 
869
  = 0.24.1 =
870
  * Improved file manager and fixed rare PHP error displayed on settings page
871
 
4
  Tags: webp, images, performance
5
  Requires at least: 4.0
6
  Tested up to: 5.8
7
+ Stable tag: 0.24.2
8
  Requires PHP: 5.6
9
  License: GPLv3
10
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
782
 
783
  == Changelog ==
784
 
785
+ = 0.24.2 =
786
+ *(released: 25 Nov 2021)*
787
+ * Bugfix: In FileManager, the original image wasn't showing on all systems
788
+
789
  = 0.24.1 =
790
  *(released: 24 Nov 2021)*
791
  * Bugfix: On some systems, the converter test run that is done when showing the settings page could result in an uncatched error.
870
 
871
  == Upgrade Notice ==
872
 
873
+ = 0.24.2 =
874
+ * Minor bugfix
875
+
876
  = 0.24.1 =
877
  * Improved file manager and fixed rare PHP error displayed on settings page
878
 
changelog.txt CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  = 0.24.1 =
2
  * Bugfix: On some systems, the converter test run that is done when showing the settings page could result in an uncatched error.
3
 
1
+ = 0.24.2 =
2
+ * Bugfix: In FileManager, the original image wasn't showing on all systems
3
+
4
  = 0.24.1 =
5
  * Bugfix: On some systems, the converter test run that is done when showing the settings page could result in an uncatched error.
6
 
composer.json CHANGED
@@ -4,7 +4,7 @@
4
  "type": "wordpress-plugin",
5
  "license": "MIT",
6
  "require": {
7
- "composer/installers": "^1.0.0",
8
  "rosell-dk/webp-convert": "^2.8.0",
9
  "rosell-dk/webp-convert-cloud-service": "^2.0.0",
10
  "rosell-dk/dom-util-for-webp": "^0.5.0",
4
  "type": "wordpress-plugin",
5
  "license": "MIT",
6
  "require": {
7
+ "composer/installers": "^1.12.0",
8
  "rosell-dk/webp-convert": "^2.8.0",
9
  "rosell-dk/webp-convert-cloud-service": "^2.0.0",
10
  "rosell-dk/dom-util-for-webp": "^0.5.0",
docs/publishing.md CHANGED
@@ -114,12 +114,12 @@ svn status | grep '^!' | awk '{print $2}' | xargs svn delete --force (t
114
  Then add a new tag
115
  ```
116
  cd svn
117
- svn cp trunk tags/0.23.0 (this will copy trunk into a new tag)
118
  ```
119
 
120
  And commit!
121
  ```
122
- svn ci -m '0.24.0 pre-release'
123
  ```
124
 
125
 
114
  Then add a new tag
115
  ```
116
  cd svn
117
+ svn cp trunk tags/0.24.1 (this will copy trunk into a new tag)
118
  ```
119
 
120
  And commit!
121
  ```
122
+ svn ci -m '0.24.1'
123
  ```
124
 
125
 
lib/classes/ConvertHelperIndependent.php CHANGED
@@ -571,7 +571,7 @@ APACHE
571
  $text = preg_replace('#' . preg_quote($_SERVER["DOCUMENT_ROOT"]) . '#', '[doc-root]', $text);
572
 
573
  // TODO: Put version number somewhere else. Ie \WebPExpress\VersionNumber::version
574
- $text = 'WebP Express 0.24.1. ' . $msgTop . ', ' . date("Y-m-d H:i:s") . "\n\r\n\r" . $text;
575
 
576
  $logFile = self::getLogFilename($source, $logDir);
577
 
571
  $text = preg_replace('#' . preg_quote($_SERVER["DOCUMENT_ROOT"]) . '#', '[doc-root]', $text);
572
 
573
  // TODO: Put version number somewhere else. Ie \WebPExpress\VersionNumber::version
574
+ $text = 'WebP Express 0.24.2. ' . $msgTop . ', ' . date("Y-m-d H:i:s") . "\n\r\n\r" . $text;
575
 
576
  $logFile = self::getLogFilename($source, $logDir);
577
 
lib/classes/WCFMApi.php CHANGED
@@ -254,6 +254,7 @@ class WCFMApi
254
  * @return string
255
  */
256
  private static function setMime($path, &$info) {
 
257
  $mimeResult = ImageMimeTypeGuesser::detect($path);
258
  if (!$mimeResult) {
259
  return;
254
  * @return string
255
  */
256
  private static function setMime($path, &$info) {
257
+ require_once __DIR__ . "/../../vendor/autoload.php";
258
  $mimeResult = ImageMimeTypeGuesser::detect($path);
259
  if (!$mimeResult) {
260
  return;
vendor/composer/installed.json CHANGED
@@ -284,31 +284,30 @@
284
  },
285
  {
286
  "name": "rosell-dk/htaccess-capability-tester",
287
- "version": "0.9",
288
- "version_normalized": "0.9.0.0",
289
  "source": {
290
  "type": "git",
291
  "url": "https://github.com/rosell-dk/htaccess-capability-tester.git",
292
- "reference": "2eb2cf38a9f42fc3aa647d6e9c896e124bfebf4c"
293
  },
294
  "dist": {
295
  "type": "zip",
296
- "url": "https://api.github.com/repos/rosell-dk/htaccess-capability-tester/zipball/2eb2cf38a9f42fc3aa647d6e9c896e124bfebf4c",
297
- "reference": "2eb2cf38a9f42fc3aa647d6e9c896e124bfebf4c",
298
  "shasum": ""
299
  },
300
  "require": {
301
- "php": "^5.6 | ^7.0"
302
  },
303
  "require-dev": {
304
- "phpunit/php-code-coverage": "dev-4.0-dev as 4.0.4",
305
- "phpunit/phpunit": "^5.7",
306
  "squizlabs/php_codesniffer": "3.*"
307
  },
308
  "suggest": {
309
  "php-stan/php-stan": "Suggested for dev, in order to analyse code before committing"
310
  },
311
- "time": "2020-11-04T10:29:38+00:00",
312
  "type": "library",
313
  "extra": {
314
  "scripts-descriptions": {
@@ -343,6 +342,20 @@
343
  "apache",
344
  "litespeed"
345
  ],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
346
  "install-path": "../rosell-dk/htaccess-capability-tester"
347
  },
348
  {
284
  },
285
  {
286
  "name": "rosell-dk/htaccess-capability-tester",
287
+ "version": "0.9.1",
288
+ "version_normalized": "0.9.1.0",
289
  "source": {
290
  "type": "git",
291
  "url": "https://github.com/rosell-dk/htaccess-capability-tester.git",
292
+ "reference": "b4499dcd9fe8b538a617069fdf34ae3de877c977"
293
  },
294
  "dist": {
295
  "type": "zip",
296
+ "url": "https://api.github.com/repos/rosell-dk/htaccess-capability-tester/zipball/b4499dcd9fe8b538a617069fdf34ae3de877c977",
297
+ "reference": "b4499dcd9fe8b538a617069fdf34ae3de877c977",
298
  "shasum": ""
299
  },
300
  "require": {
301
+ "php": "^5.6 | ^7.0 | ^8.0"
302
  },
303
  "require-dev": {
304
+ "phpunit/phpunit": "^9.5",
 
305
  "squizlabs/php_codesniffer": "3.*"
306
  },
307
  "suggest": {
308
  "php-stan/php-stan": "Suggested for dev, in order to analyse code before committing"
309
  },
310
+ "time": "2021-11-25T13:21:12+00:00",
311
  "type": "library",
312
  "extra": {
313
  "scripts-descriptions": {
342
  "apache",
343
  "litespeed"
344
  ],
345
+ "support": {
346
+ "issues": "https://github.com/rosell-dk/htaccess-capability-tester/issues",
347
+ "source": "https://github.com/rosell-dk/htaccess-capability-tester/tree/1.0.0"
348
+ },
349
+ "funding": [
350
+ {
351
+ "url": "https://github.com/rosell-dk",
352
+ "type": "github"
353
+ },
354
+ {
355
+ "url": "https://ko-fi.com/rosell",
356
+ "type": "ko_fi"
357
+ }
358
+ ],
359
  "install-path": "../rosell-dk/htaccess-capability-tester"
360
  },
361
  {
vendor/composer/installed.php CHANGED
@@ -5,7 +5,7 @@
5
  'type' => 'wordpress-plugin',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
- 'reference' => 'f490b77e4af0ab648b9b3f5ae1ebd7cfbfe26603',
9
  'name' => 'rosell-dk/webp-express',
10
  'dev' => true,
11
  ),
@@ -38,12 +38,12 @@
38
  'dev_requirement' => false,
39
  ),
40
  'rosell-dk/htaccess-capability-tester' => array(
41
- 'pretty_version' => '0.9',
42
- 'version' => '0.9.0.0',
43
  'type' => 'library',
44
  'install_path' => __DIR__ . '/../rosell-dk/htaccess-capability-tester',
45
  'aliases' => array(),
46
- 'reference' => '2eb2cf38a9f42fc3aa647d6e9c896e124bfebf4c',
47
  'dev_requirement' => false,
48
  ),
49
  'rosell-dk/image-mime-type-guesser' => array(
@@ -79,7 +79,7 @@
79
  'type' => 'wordpress-plugin',
80
  'install_path' => __DIR__ . '/../../',
81
  'aliases' => array(),
82
- 'reference' => 'f490b77e4af0ab648b9b3f5ae1ebd7cfbfe26603',
83
  'dev_requirement' => false,
84
  ),
85
  'roundcube/plugin-installer' => array(
5
  'type' => 'wordpress-plugin',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
+ 'reference' => 'd35df4914bfc907d27c5948d18cb05d9048ba3a0',
9
  'name' => 'rosell-dk/webp-express',
10
  'dev' => true,
11
  ),
38
  'dev_requirement' => false,
39
  ),
40
  'rosell-dk/htaccess-capability-tester' => array(
41
+ 'pretty_version' => '0.9.1',
42
+ 'version' => '0.9.1.0',
43
  'type' => 'library',
44
  'install_path' => __DIR__ . '/../rosell-dk/htaccess-capability-tester',
45
  'aliases' => array(),
46
+ 'reference' => 'b4499dcd9fe8b538a617069fdf34ae3de877c977',
47
  'dev_requirement' => false,
48
  ),
49
  'rosell-dk/image-mime-type-guesser' => array(
79
  'type' => 'wordpress-plugin',
80
  'install_path' => __DIR__ . '/../../',
81
  'aliases' => array(),
82
+ 'reference' => 'd35df4914bfc907d27c5948d18cb05d9048ba3a0',
83
  'dev_requirement' => false,
84
  ),
85
  'roundcube/plugin-installer' => array(
vendor/rosell-dk/htaccess-capability-tester/README.md CHANGED
@@ -2,7 +2,7 @@
2
 
3
  [![Latest Stable Version](https://img.shields.io/packagist/v/rosell-dk/htaccess-capability-tester.svg?style=flat-square)](https://packagist.org/packages/rosell-dk/htaccess-capability-tester)
4
  [![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%205.6-8892BF.svg?style=flat-square)](https://php.net)
5
- [![Build Status](https://travis-ci.org/rosell-dk/htaccess-capability-tester.png?branch=master)](https://travis-ci.org/rosell-dk/htaccess-capability-tester)
6
  [![Coverage Status](https://img.shields.io/scrutinizer/coverage/g/rosell-dk/htaccess-capability-tester.svg?style=flat-square)](https://scrutinizer-ci.com/g/rosell-dk/htaccess-capability-tester/code-structure/master/code-coverage/src/)
7
  [![Quality Score](https://img.shields.io/scrutinizer/g/rosell-dk/htaccess-capability-tester.svg?style=flat-square)](https://scrutinizer-ci.com/g/rosell-dk/htaccess-capability-tester/)
8
  [![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](https://github.com/rosell-dk/htaccess-capability-tester/blob/master/LICENSE)
2
 
3
  [![Latest Stable Version](https://img.shields.io/packagist/v/rosell-dk/htaccess-capability-tester.svg?style=flat-square)](https://packagist.org/packages/rosell-dk/htaccess-capability-tester)
4
  [![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%205.6-8892BF.svg?style=flat-square)](https://php.net)
5
+ [![Build Status](https://img.shields.io/github/workflow/status/rosell-dk/webp-convert/PHP?logo=GitHub&style=flat-square)](https://github.com/rosell-dk/webp-convert/actions/workflows/php.yml)
6
  [![Coverage Status](https://img.shields.io/scrutinizer/coverage/g/rosell-dk/htaccess-capability-tester.svg?style=flat-square)](https://scrutinizer-ci.com/g/rosell-dk/htaccess-capability-tester/code-structure/master/code-coverage/src/)
7
  [![Quality Score](https://img.shields.io/scrutinizer/g/rosell-dk/htaccess-capability-tester.svg?style=flat-square)](https://scrutinizer-ci.com/g/rosell-dk/htaccess-capability-tester/)
8
  [![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](https://github.com/rosell-dk/htaccess-capability-tester/blob/master/LICENSE)
vendor/rosell-dk/htaccess-capability-tester/composer.json CHANGED
@@ -22,7 +22,7 @@
22
  "phpcs": "phpcs --standard=PSR2",
23
  "phpcbf": "phpcbf --standard=PSR2",
24
  "phpstan": "vendor/bin/phpstan analyse src --level=4",
25
- "phpstan-global": "~/.composer/vendor/bin/phpstan analyse src --level=4"
26
  },
27
  "extra": {
28
  "scripts-descriptions": {
@@ -48,20 +48,13 @@
48
  }
49
  ],
50
  "require": {
51
- "php": "^5.6 | ^7.0"
52
  },
53
  "suggest": {
54
  "php-stan/php-stan": "Suggested for dev, in order to analyse code before committing"
55
  },
56
- "repositories": [
57
- {
58
- "type": "git",
59
- "url": "https://github.com/elyobo/php-code-coverage.git"
60
- }
61
- ],
62
  "require-dev": {
63
- "phpunit/phpunit": "^5.7",
64
- "phpunit/php-code-coverage": "dev-4.0-dev as 4.0.4",
65
  "squizlabs/php_codesniffer": "3.*"
66
  },
67
  "minimum-stability": "dev",
22
  "phpcs": "phpcs --standard=PSR2",
23
  "phpcbf": "phpcbf --standard=PSR2",
24
  "phpstan": "vendor/bin/phpstan analyse src --level=4",
25
+ "phpstan-global": "~/.config/composer/vendor/bin/phpstan analyse src --level=4"
26
  },
27
  "extra": {
28
  "scripts-descriptions": {
48
  }
49
  ],
50
  "require": {
51
+ "php": "^5.6 | ^7.0 | ^8.0"
52
  },
53
  "suggest": {
54
  "php-stan/php-stan": "Suggested for dev, in order to analyse code before committing"
55
  },
 
 
 
 
 
 
56
  "require-dev": {
57
+ "phpunit/phpunit": "^9.5",
 
58
  "squizlabs/php_codesniffer": "3.*"
59
  },
60
  "minimum-stability": "dev",
vendor/rosell-dk/htaccess-capability-tester/phpunit-41.xml.dist ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+
3
+ <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+ xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
5
+ backupGlobals="false"
6
+ backupStaticAttributes="false"
7
+ colors="true"
8
+ convertErrorsToExceptions="true"
9
+ convertNoticesToExceptions="true"
10
+ convertWarningsToExceptions="false"
11
+ processIsolation="false"
12
+ stopOnFailure="false"
13
+ bootstrap="vendor/autoload.php"
14
+
15
+ >
16
+ <testsuites>
17
+ <testsuite name="HtaccessCapabilitTester Test Suite">
18
+ <directory>./tests/</directory>
19
+ </testsuite>
20
+ </testsuites>
21
+
22
+ <filter>
23
+ <whitelist>
24
+ <directory suffix=".php">src/</directory>
25
+ <exclude>
26
+ <directory>./vendor</directory>
27
+ <directory>./tests</directory>
28
+ </exclude>
29
+ </whitelist>
30
+ </filter>
31
+
32
+ <logging>
33
+ <log type="junit" target="build/report.junit.xml"/>
34
+ <log type="coverage-clover" target="coverage.clover"/>
35
+ <log type="coverage-text" target="build/coverage.txt"/>
36
+ <log type="coverage-html" target="build/coverage"/>
37
+ </logging>
38
+
39
+ </phpunit>
vendor/rosell-dk/htaccess-capability-tester/phpunit.xml.dist CHANGED
@@ -1,39 +1,25 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
-
3
- <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
- xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
5
- backupGlobals="false"
6
- backupStaticAttributes="false"
7
- colors="true"
8
- convertErrorsToExceptions="true"
9
- convertNoticesToExceptions="true"
10
- convertWarningsToExceptions="false"
11
- processIsolation="false"
12
- stopOnFailure="false"
13
- bootstrap="vendor/autoload.php"
14
-
15
- >
16
- <testsuites>
17
- <testsuite name="HtaccessCapabilitTester Test Suite">
18
- <directory>./tests/</directory>
19
- </testsuite>
20
- </testsuites>
21
-
22
- <filter>
23
- <whitelist>
24
- <directory suffix=".php">src/</directory>
25
- <exclude>
26
- <directory>./vendor</directory>
27
- <directory>./tests</directory>
28
- </exclude>
29
- </whitelist>
30
- </filter>
31
-
32
- <logging>
33
- <log type="junit" target="build/report.junit.xml"/>
34
- <log type="coverage-clover" target="coverage.clover"/>
35
- <log type="coverage-text" target="build/coverage.txt"/>
36
- <log type="coverage-html" target="build/coverage"/>
37
- </logging>
38
-
39
- </phpunit>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" backupGlobals="false" backupStaticAttributes="false" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="false" processIsolation="false" stopOnFailure="false" bootstrap="vendor/autoload.php">
3
+ <coverage>
4
+ <include>
5
+ <directory suffix=".php">src/</directory>
6
+ </include>
7
+ <exclude>
8
+ <directory>./vendor</directory>
9
+ <directory>./tests</directory>
10
+ </exclude>
11
+ <report>
12
+ <clover outputFile="coverage.clover"/>
13
+ <html outputDirectory="build/coverage"/>
14
+ <text outputFile="build/coverage.txt"/>
15
+ </report>
16
+ </coverage>
17
+ <testsuites>
18
+ <testsuite name="HtaccessCapabilitTester Test Suite">
19
+ <directory>./tests/</directory>
20
+ </testsuite>
21
+ </testsuites>
22
+ <logging>
23
+ <junit outputFile="build/report.junit.xml"/>
24
+ </logging>
25
+ </phpunit>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
webp-express.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WebP Express
4
  * Plugin URI: https://github.com/rosell-dk/webp-express
5
  * Description: Serve autogenerated WebP images instead of jpeg/png to browsers that supports WebP. Works on anything (media library images, galleries, theme images etc).
6
- * Version: 0.24.1
7
  * Author: Bjørn Rosell
8
  * Author URI: https://www.bitwise-it.dk
9
  * License: GPL2
3
  * Plugin Name: WebP Express
4
  * Plugin URI: https://github.com/rosell-dk/webp-express
5
  * Description: Serve autogenerated WebP images instead of jpeg/png to browsers that supports WebP. Works on anything (media library images, galleries, theme images etc).
6
+ * Version: 0.24.2
7
  * Author: Bjørn Rosell
8
  * Author URI: https://www.bitwise-it.dk
9
  * License: GPL2