Skip to content

Commit

Permalink
Merge branch 'release-2.9.1' into releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Archetyped committed Sep 9, 2022
2 parents 7e4bdba + 95dea09 commit 9cb6b66
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 5 deletions.
4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
= 2.9.1 =

* Fix: Validate hook priority values (Let's Getz Prioritized)

= 2.9.0 =

* Add: Support WebP image format
Expand Down
6 changes: 5 additions & 1 deletion controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,11 @@ public function hooks_add_last( $data = null ) {
}

// Get lowest priority for filter.
$max_priority = max( array_keys( $wp_filter[ $tag ]->callbacks ) ) + 123;
$max_priority = max( array_keys( $wp_filter[ $tag ]->callbacks ) );
// Add priority offset
if ( $max_priority < PHP_INT_MAX ) {
$max_priority += min( 123, PHP_INT_MAX - $max_priority );
}

switch ( $tag ) {
case 'the_content':
Expand Down
2 changes: 1 addition & 1 deletion main.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Plugin Name: Simple Lightbox
* Plugin URI: http://archetyped.com/tools/simple-lightbox/
* Description: The highly customizable lightbox for WordPress
* Version: 2.9.0
* Version: 2.9.1
* Requires at least: 5.3
* Requires PHP: 5.6.20
* Text Domain: simple-lightbox
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simple-lightbox",
"version": "2.9.0",
"version": "2.9.1",
"title": "Simple Lightbox",
"description": "The highly-customizable lightbox for WordPress",
"author": "Archetyped <support@archetyped.com>",
Expand Down
4 changes: 4 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ Get more information on [Simple Lightbox's official page](http://archetyped.com/

== Changelog ==

= 2.9.1 =

* Fix: Validate hook priority values (Let's Getz Prioritized)

= 2.9.0 =

* Add: Support WebP image format
Expand Down

0 comments on commit 9cb6b66

Please sign in to comment.