Simple Lightbox - Version 2.9.1

Version Description

  • Fix: Validate hook priority values (Let's Getz Prioritized)
Download this release

Release Info

Developer Archetyped
Plugin Icon wp plugin Simple Lightbox
Version 2.9.1
Comparing to
See all releases

Code changes from version 2.9.0 to 2.9.1

.editorconfig ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ root = true
2
+
3
+ [*]
4
+ charset = utf-8
5
+ indent_style = space
6
+ indent_size = 4
7
+ end_of_line = lf
8
+ trim_trailing_whitespace = true
9
+
10
+ [*.{php,css,js,html}]
11
+ indent_style = tab
12
+ insert_final_newline = true
13
+
14
+ [package*.json]
15
+ indent_size = 2
.github/ISSUE_TEMPLATE/0_support-ticket.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ name: Support Ticket
3
+ about: Get support for an issue you are experiencing
4
+ title: ""
5
+ labels: support
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ ## Description of Problem
11
+
12
+ (Clearly describe the issue you are experiencing here, and fill in the necessary details below)
13
+
14
+ ## Details
15
+
16
+ * URL of Page exhibiting problem:
17
+ * Browser(s) exhibiting problem (Firefox, Chrome, etc.):
18
+ * Version of SLB Installed:
19
+ * Other plugins installed:
.github/ISSUE_TEMPLATE/1_feature-request.md ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ name: Feature request
3
+ about: Enhance! Suggest an idea for SLB.
4
+ title: "[Request]: "
5
+ labels: enhancement
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ ## Description of feature
11
+
12
+ (Describe your feature or idea here)
13
+
14
+ ## This feature would be used to
15
+
16
+ (Describe usage here)
17
+
18
+ ## If you added this feature, I would:
19
+
20
+ a) Eat my hat
21
+ b) Jump for joy
22
+ c) Shave my cat
23
+ d) All of the above
.github/ISSUE_TEMPLATE/config.yml ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ blank_issues_enabled: false
2
+ contact_links:
3
+ - name: Feedback & Support
4
+ url: https://github.com/archetyped/simple-lightbox/wiki/Feedback-&-Support
5
+ about: How to share feedback and get support for Simple Lightbox
.github/ISSUE_TEMPLATE/feedback.md ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ name: Feedback
3
+ about: Share your feedback
4
+ title: "[Feedback]: "
5
+ labels: feedback
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+
changelog.txt CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  = 2.9.0 =
2
 
3
  * Add: Support WebP image format
1
+ = 2.9.1 =
2
+
3
+ * Fix: Validate hook priority values (Let's Getz Prioritized)
4
+
5
  = 2.9.0 =
6
 
7
  * Add: Support WebP image format
controller.php CHANGED
@@ -285,7 +285,11 @@ class SLB_Lightbox extends SLB_Base {
285
  }
286
 
287
  // Get lowest priority for filter.
288
- $max_priority = max( array_keys( $wp_filter[ $tag ]->callbacks ) ) + 123;
 
 
 
 
289
 
290
  switch ( $tag ) {
291
  case 'the_content':
285
  }
286
 
287
  // Get lowest priority for filter.
288
+ $max_priority = max( array_keys( $wp_filter[ $tag ]->callbacks ) );
289
+ // Add priority offset
290
+ if ( $max_priority < PHP_INT_MAX ) {
291
+ $max_priority += min( 123, PHP_INT_MAX - $max_priority );
292
+ }
293
 
294
  switch ( $tag ) {
295
  case 'the_content':
main.php CHANGED
@@ -9,7 +9,7 @@
9
  * Plugin Name: Simple Lightbox
10
  * Plugin URI: http://archetyped.com/tools/simple-lightbox/
11
  * Description: The highly customizable lightbox for WordPress
12
- * Version: 2.9.0
13
  * Requires at least: 5.3
14
  * Requires PHP: 5.6.20
15
  * Text Domain: simple-lightbox
9
  * Plugin Name: Simple Lightbox
10
  * Plugin URI: http://archetyped.com/tools/simple-lightbox/
11
  * Description: The highly customizable lightbox for WordPress
12
+ * Version: 2.9.1
13
  * Requires at least: 5.3
14
  * Requires PHP: 5.6.20
15
  * Text Domain: simple-lightbox
package-lock.json CHANGED
@@ -1,11 +1,11 @@
1
  {
2
  "name": "simple-lightbox",
3
- "version": "2.9.0",
4
  "lockfileVersion": 2,
5
  "requires": true,
6
  "packages": {
7
  "": {
8
- "version": "2.9.0",
9
  "license": "GPLv2",
10
  "devDependencies": {
11
  "grunt": "^1.5.3",
1
  {
2
  "name": "simple-lightbox",
3
+ "version": "2.9.1",
4
  "lockfileVersion": 2,
5
  "requires": true,
6
  "packages": {
7
  "": {
8
+ "version": "2.9.1",
9
  "license": "GPLv2",
10
  "devDependencies": {
11
  "grunt": "^1.5.3",
package.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "name": "simple-lightbox",
3
- "version": "2.9.0",
4
  "title": "Simple Lightbox",
5
  "description": "The highly-customizable lightbox for WordPress",
6
  "author": "Archetyped <support@archetyped.com>",
1
  {
2
  "name": "simple-lightbox",
3
+ "version": "2.9.1",
4
  "title": "Simple Lightbox",
5
  "description": "The highly-customizable lightbox for WordPress",
6
  "author": "Archetyped <support@archetyped.com>",
readme.txt CHANGED
@@ -65,6 +65,10 @@ Get more information on [Simple Lightbox's official page](http://archetyped.com/
65
 
66
  == Changelog ==
67
 
 
 
 
 
68
  = 2.9.0 =
69
 
70
  * Add: Support WebP image format
65
 
66
  == Changelog ==
67
 
68
+ = 2.9.1 =
69
+
70
+ * Fix: Validate hook priority values (Let's Getz Prioritized)
71
+
72
  = 2.9.0 =
73
 
74
  * Add: Support WebP image format