Simple Lightbox - Version 2.9.2

Version Description

  • Optimize: Symbolic link handing for file/directory paths.
Download this release

Release Info

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

Code changes from version 2.9.1 to 2.9.2

Files changed (99) hide show
  1. .editorconfig +0 -15
  2. .github/ISSUE_TEMPLATE/0_support-ticket.md +0 -19
  3. .github/ISSUE_TEMPLATE/1_feature-request.md +0 -23
  4. .github/ISSUE_TEMPLATE/config.yml +0 -5
  5. .github/ISSUE_TEMPLATE/feedback.md +0 -10
  6. .gitignore +0 -5
  7. CONTRIBUTING.md +0 -0
  8. COPYING +0 -0
  9. Gruntfile.js +0 -0
  10. README.md +0 -0
  11. changelog.txt +4 -0
  12. client/css/admin.css +0 -0
  13. client/css/app.css +0 -0
  14. client/js/dev/lib.admin.js +0 -0
  15. client/js/dev/lib.core.js +0 -0
  16. client/js/dev/lib.view.js +0 -0
  17. client/js/prod/lib.admin.js +0 -0
  18. client/js/prod/lib.core.js +0 -0
  19. client/js/prod/lib.view.js +0 -0
  20. client/sass/admin.scss +0 -0
  21. client/sass/app.scss +0 -0
  22. composer.json +0 -0
  23. composer.lock +0 -0
  24. content-handlers/image/js/dev/handler.image.js +0 -0
  25. content-handlers/image/js/prod/handler.image.js +0 -0
  26. controller.php +0 -0
  27. functions.php +0 -0
  28. grunt/jshint.js +0 -0
  29. grunt/phplint.js +0 -0
  30. grunt/sass.js +0 -0
  31. grunt/uglify.js +0 -0
  32. grunt/watch.js +0 -0
  33. includes/class-requirements-check.php +0 -0
  34. includes/class.admin.php +0 -0
  35. includes/class.admin_action.php +0 -0
  36. includes/class.admin_menu.php +0 -0
  37. includes/class.admin_page.php +0 -0
  38. includes/class.admin_section.php +0 -0
  39. includes/class.admin_view.php +0 -0
  40. includes/class.base.php +0 -0
  41. includes/class.base_collection.php +0 -0
  42. includes/class.base_object.php +0 -0
  43. includes/class.collection_controller.php +0 -0
  44. includes/class.component.php +0 -0
  45. includes/class.content_handler.php +0 -0
  46. includes/class.content_handlers.php +0 -0
  47. includes/class.field.php +0 -0
  48. includes/class.field_base.php +0 -0
  49. includes/class.field_collection.php +0 -0
  50. includes/class.field_type.php +0 -0
  51. includes/class.fields.php +0 -0
  52. includes/class.option.php +0 -0
  53. includes/class.options.php +0 -0
  54. includes/class.template_tag.php +0 -0
  55. includes/class.template_tags.php +0 -0
  56. includes/class.theme.php +0 -0
  57. includes/class.themes.php +0 -0
  58. includes/class.utilities.php +10 -2
  59. l10n/simple-lightbox-tr_TR.mo +0 -0
  60. l10n/simple-lightbox-tr_TR.po +0 -0
  61. l10n/simple-lightbox.pot +0 -0
  62. load.php +0 -0
  63. main.php +1 -1
  64. package-lock.json +2 -2
  65. package.json +1 -1
  66. phpcs.xml.dist +0 -0
  67. readme.txt +4 -0
  68. template-tags/item/js/dev/tag.item.js +0 -0
  69. template-tags/item/js/prod/tag.item.js +0 -0
  70. template-tags/ui/js/dev/tag.ui.js +0 -0
  71. template-tags/ui/js/prod/tag.ui.js +0 -0
  72. themes/baseline/css/style.css +0 -0
  73. themes/baseline/images/loading.gif +0 -0
  74. themes/baseline/js/dev/client.js +0 -0
  75. themes/baseline/js/prod/client.js +0 -0
  76. themes/baseline/layout.html +0 -0
  77. themes/baseline/sass/style.scss +0 -0
  78. themes/black/css/style.css +0 -0
  79. themes/black/images/loading.gif +0 -0
  80. themes/black/images/nav_next.png +0 -0
  81. themes/black/images/nav_prev.png +0 -0
  82. themes/black/sass/style.scss +0 -0
  83. themes/default/css/style.css +0 -0
  84. themes/default/fonts/OFL.txt +0 -0
  85. themes/default/fonts/yanone-kaffeesatz-v9-latin-regular.eot +0 -0
  86. themes/default/fonts/yanone-kaffeesatz-v9-latin-regular.svg +0 -0
  87. themes/default/fonts/yanone-kaffeesatz-v9-latin-regular.ttf +0 -0
  88. themes/default/fonts/yanone-kaffeesatz-v9-latin-regular.woff +0 -0
  89. themes/default/fonts/yanone-kaffeesatz-v9-latin-regular.woff2 +0 -0
  90. themes/default/images/loading.gif +0 -0
  91. themes/default/images/nav_next.png +0 -0
  92. themes/default/images/nav_prev.png +0 -0
  93. themes/default/images/ui_close.png +0 -0
  94. themes/default/images/ui_slideshow_pause.png +0 -0
  95. themes/default/images/ui_slideshow_play.png +0 -0
  96. themes/default/js/dev/client.js +0 -0
  97. themes/default/js/prod/client.js +0 -0
  98. themes/default/sass/_fonts.scss +0 -0
  99. themes/default/sass/style.scss +0 -0
.editorconfig DELETED
@@ -1,15 +0,0 @@
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 DELETED
@@ -1,19 +0,0 @@
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 DELETED
@@ -1,23 +0,0 @@
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 DELETED
@@ -1,5 +0,0 @@
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 DELETED
@@ -1,10 +0,0 @@
1
- ---
2
- name: Feedback
3
- about: Share your feedback
4
- title: "[Feedback]: "
5
- labels: feedback
6
- assignees: ''
7
-
8
- ---
9
-
10
-
 
 
 
 
 
 
 
 
 
 
.gitignore DELETED
@@ -1,5 +0,0 @@
1
- .ds_store
2
- .vscode
3
- .sass-cache
4
- node_modules/
5
- vendor/
 
 
 
 
 
CONTRIBUTING.md CHANGED
File without changes
COPYING CHANGED
File without changes
Gruntfile.js CHANGED
File without changes
README.md CHANGED
File without changes
changelog.txt CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  = 2.9.1 =
2
 
3
  * Fix: Validate hook priority values (Let's Getz Prioritized)
1
+ = 2.9.2 =
2
+
3
+ * Optimize: Symbolic link handing for file/directory paths.
4
+
5
  = 2.9.1 =
6
 
7
  * Fix: Validate hook priority values (Let's Getz Prioritized)
client/css/admin.css CHANGED
File without changes
client/css/app.css CHANGED
File without changes
client/js/dev/lib.admin.js CHANGED
File without changes
client/js/dev/lib.core.js CHANGED
File without changes
client/js/dev/lib.view.js CHANGED
File without changes
client/js/prod/lib.admin.js CHANGED
File without changes
client/js/prod/lib.core.js CHANGED
File without changes
client/js/prod/lib.view.js CHANGED
File without changes
client/sass/admin.scss CHANGED
File without changes
client/sass/app.scss CHANGED
File without changes
composer.json CHANGED
File without changes
composer.lock CHANGED
File without changes
content-handlers/image/js/dev/handler.image.js CHANGED
File without changes
content-handlers/image/js/prod/handler.image.js CHANGED
File without changes
controller.php CHANGED
File without changes
functions.php CHANGED
File without changes
grunt/jshint.js CHANGED
File without changes
grunt/phplint.js CHANGED
File without changes
grunt/sass.js CHANGED
File without changes
grunt/uglify.js CHANGED
File without changes
grunt/watch.js CHANGED
File without changes
includes/class-requirements-check.php CHANGED
File without changes
includes/class.admin.php CHANGED
File without changes
includes/class.admin_action.php CHANGED
File without changes
includes/class.admin_menu.php CHANGED
File without changes
includes/class.admin_page.php CHANGED
File without changes
includes/class.admin_section.php CHANGED
File without changes
includes/class.admin_view.php CHANGED
File without changes
includes/class.base.php CHANGED
File without changes
includes/class.base_collection.php CHANGED
File without changes
includes/class.base_object.php CHANGED
File without changes
includes/class.collection_controller.php CHANGED
File without changes
includes/class.component.php CHANGED
File without changes
includes/class.content_handler.php CHANGED
File without changes
includes/class.content_handlers.php CHANGED
File without changes
includes/class.field.php CHANGED
File without changes
includes/class.field_base.php CHANGED
File without changes
includes/class.field_collection.php CHANGED
File without changes
includes/class.field_type.php CHANGED
File without changes
includes/class.fields.php CHANGED
File without changes
includes/class.option.php CHANGED
File without changes
includes/class.options.php CHANGED
File without changes
includes/class.template_tag.php CHANGED
File without changes
includes/class.template_tags.php CHANGED
File without changes
includes/class.theme.php CHANGED
File without changes
includes/class.themes.php CHANGED
File without changes
includes/class.utilities.php CHANGED
@@ -1251,10 +1251,18 @@ class SLB_Utilities {
1251
  }
1252
  // Extract base path
1253
  $base = $this->normalize_path( $base );
1254
- if ( 0 === strpos( $base, $this->normalize_path( WP_PLUGIN_DIR ) ) ) {
1255
- $end = strpos( $base, '/', strlen( WP_PLUGIN_DIR ) + 1 );
 
1256
  $base = substr( $base, 0, $end );
1257
  }
 
 
 
 
 
 
 
1258
  // Save base path.
1259
  $this->_path_base = $base;
1260
  }
1251
  }
1252
  // Extract base path
1253
  $base = $this->normalize_path( $base );
1254
+ $wp_plugin_dir = $this->normalize_path( realpath( WP_PLUGIN_DIR ) );
1255
+ if ( 0 === strpos( $base, $wp_plugin_dir ) ) {
1256
+ $end = strpos( $base, '/', strlen( $wp_plugin_dir ) + 1 );
1257
  $base = substr( $base, 0, $end );
1258
  }
1259
+ // Validate path.
1260
+ if ( !is_dir( $base ) || !is_readable( $base ) ) {
1261
+ // Fallback: Merge `WP_PLUGIN_DIR` and top-level directory from `plugin_basename()`.
1262
+ $base = plugin_basename( __FILE__ );
1263
+ $base = substr( $base, 0, strpos( $base, '/') );
1264
+ $base = $this->normalize_path( WP_PLUGIN_DIR, $base, false );
1265
+ }
1266
  // Save base path.
1267
  $this->_path_base = $base;
1268
  }
l10n/simple-lightbox-tr_TR.mo CHANGED
File without changes
l10n/simple-lightbox-tr_TR.po CHANGED
File without changes
l10n/simple-lightbox.pot CHANGED
File without changes
load.php CHANGED
File without changes
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.1
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.2
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.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",
1
  {
2
  "name": "simple-lightbox",
3
+ "version": "2.9.2",
4
  "lockfileVersion": 2,
5
  "requires": true,
6
  "packages": {
7
  "": {
8
+ "version": "2.9.2",
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.1",
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.2",
4
  "title": "Simple Lightbox",
5
  "description": "The highly-customizable lightbox for WordPress",
6
  "author": "Archetyped <support@archetyped.com>",
phpcs.xml.dist CHANGED
File without changes
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.1 =
69
 
70
  * Fix: Validate hook priority values (Let's Getz Prioritized)
65
 
66
  == Changelog ==
67
 
68
+ = 2.9.2 =
69
+
70
+ * Optimize: Symbolic link handing for file/directory paths.
71
+
72
  = 2.9.1 =
73
 
74
  * Fix: Validate hook priority values (Let's Getz Prioritized)
template-tags/item/js/dev/tag.item.js CHANGED
File without changes
template-tags/item/js/prod/tag.item.js CHANGED
File without changes
template-tags/ui/js/dev/tag.ui.js CHANGED
File without changes
template-tags/ui/js/prod/tag.ui.js CHANGED
File without changes
themes/baseline/css/style.css CHANGED
File without changes
themes/baseline/images/loading.gif CHANGED
File without changes
themes/baseline/js/dev/client.js CHANGED
File without changes
themes/baseline/js/prod/client.js CHANGED
File without changes
themes/baseline/layout.html CHANGED
File without changes
themes/baseline/sass/style.scss CHANGED
File without changes
themes/black/css/style.css CHANGED
File without changes
themes/black/images/loading.gif CHANGED
File without changes
themes/black/images/nav_next.png CHANGED
File without changes
themes/black/images/nav_prev.png CHANGED
File without changes
themes/black/sass/style.scss CHANGED
File without changes
themes/default/css/style.css CHANGED
File without changes
themes/default/fonts/OFL.txt CHANGED
File without changes
themes/default/fonts/yanone-kaffeesatz-v9-latin-regular.eot CHANGED
File without changes
themes/default/fonts/yanone-kaffeesatz-v9-latin-regular.svg CHANGED
File without changes
themes/default/fonts/yanone-kaffeesatz-v9-latin-regular.ttf CHANGED
File without changes
themes/default/fonts/yanone-kaffeesatz-v9-latin-regular.woff CHANGED
File without changes
themes/default/fonts/yanone-kaffeesatz-v9-latin-regular.woff2 CHANGED
File without changes
themes/default/images/loading.gif CHANGED
File without changes
themes/default/images/nav_next.png CHANGED
File without changes
themes/default/images/nav_prev.png CHANGED
File without changes
themes/default/images/ui_close.png CHANGED
File without changes
themes/default/images/ui_slideshow_pause.png CHANGED
File without changes
themes/default/images/ui_slideshow_play.png CHANGED
File without changes
themes/default/js/dev/client.js CHANGED
File without changes
themes/default/js/prod/client.js CHANGED
File without changes
themes/default/sass/_fonts.scss CHANGED
File without changes
themes/default/sass/style.scss CHANGED
File without changes