WebP Express - Version 0.25.3

Version Description

(released 4 May 2022) * AlterHTML: Fixed BIG BUG introduced in 0.25.2

Download this release

Release Info

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

Code changes from version 0.25.2 to 0.25.3

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.25.2
8
  Requires PHP: 5.6
9
  License: GPLv3
10
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
@@ -816,6 +816,10 @@ If you want to make sure that my coffee supplies don't run dry, you can even buy
816
 
817
  == Changelog ==
818
 
 
 
 
 
819
  = 0.25.2 =
820
  (released 4 May 2022)
821
  * AlterHTML did not skip existing picture tags when they contained newlines, resulting in picture tags inside picture tags, which is invalid markup. Thanks to Jonas for being very helpful in solving this.
@@ -917,6 +921,9 @@ For older releases, check out changelog.txt
917
 
918
  == Upgrade Notice ==
919
 
 
 
 
920
  = 0.25.2 =
921
  * Fixed bug in Alter HTML functionality. It did not skip existing picture tags when they contained newlines, resulting in picture tags inside picture tags
922
 
4
  Tags: webp, images, performance
5
  Requires at least: 4.0
6
  Tested up to: 5.8
7
+ Stable tag: 0.25.3
8
  Requires PHP: 5.6
9
  License: GPLv3
10
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
816
 
817
  == Changelog ==
818
 
819
+ = 0.25.3 =
820
+ (released 4 May 2022)
821
+ * AlterHTML: Fixed BIG BUG introduced in 0.25.2
822
+
823
  = 0.25.2 =
824
  (released 4 May 2022)
825
  * AlterHTML did not skip existing picture tags when they contained newlines, resulting in picture tags inside picture tags, which is invalid markup. Thanks to Jonas for being very helpful in solving this.
921
 
922
  == Upgrade Notice ==
923
 
924
+ = 0.25.3 =
925
+ * AlterHTML: Fixed BIG BUG introduced in 0.25.2
926
+
927
  = 0.25.2 =
928
  * Fixed bug in Alter HTML functionality. It did not skip existing picture tags when they contained newlines, resulting in picture tags inside picture tags
929
 
changelog.txt CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  = 0.25.2 =
2
  (released 4 May 2022)
3
  * AlterHTML did not skip existing picture tags when they contained newlines, resulting in picture tags inside picture tags, which is invalid markup. Thanks to Jonas for being very helpful in solving this.
1
+ = 0.25.3 =
2
+ (released 4 May 2022)
3
+ * AlterHTML: Fixed BIG BUG introduced in 0.25.2
4
+
5
  = 0.25.2 =
6
  (released 4 May 2022)
7
  * AlterHTML did not skip existing picture tags when they contained newlines, resulting in picture tags inside picture tags, which is invalid markup. Thanks to Jonas for being very helpful in solving this.
docs/publishing.md CHANGED
@@ -116,12 +116,12 @@ svn status | grep '^!' | awk '{print $2}' | xargs svn delete --force (t
116
  Then add a new tag
117
  ```
118
  cd svn
119
- svn cp trunk tags/0.25.1 (this will copy trunk into a new tag)
120
  ```
121
 
122
  And commit!
123
  ```
124
- svn ci -m '0.25.1'
125
  ```
126
 
127
 
116
  Then add a new tag
117
  ```
118
  cd svn
119
+ svn cp trunk tags/0.25.2 (this will copy trunk into a new tag)
120
  ```
121
 
122
  And commit!
123
  ```
124
+ svn ci -m '0.25.2'
125
  ```
126
 
127
 
lib/classes/AlterHtmlPicture.php CHANGED
@@ -13,8 +13,6 @@ use DOMUtilForWebP\PictureTags;
13
  class AlterHtmlPicture extends PictureTags
14
  {
15
  public function replaceUrl($url) {
16
- return $url . '.webp';
17
- //return $url . '.webp:' . AlterHtmlHelper::getWebPUrl($url, null) . ':' . $url;
18
  return AlterHtmlHelper::getWebPUrl($url, null);
19
  }
20
  }
13
  class AlterHtmlPicture extends PictureTags
14
  {
15
  public function replaceUrl($url) {
 
 
16
  return AlterHtmlHelper::getWebPUrl($url, null);
17
  }
18
  }
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.25.2. ' . $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.25.3. ' . $msgTop . ', ' . date("Y-m-d H:i:s") . "\n\r\n\r" . $text;
575
 
576
  $logFile = self::getLogFilename($source, $logDir);
577
 
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.25.2
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.25.3
7
  * Author: Bjørn Rosell
8
  * Author URI: https://www.bitwise-it.dk
9
  * License: GPL2