Responsive Lightbox & Gallery - Version 1.6.5

Version Description

  • Fix: Lightbox activated on non-video youtube links
  • Tweak: Added a way to change settings required capability
Download this release

Release Info

Developer dfactory
Plugin Icon 128x128 Responsive Lightbox & Gallery
Version 1.6.5
Comparing to
See all releases

Code changes from version 1.6.4 to 1.6.5

includes/class-settings.php CHANGED
@@ -905,7 +905,7 @@ class Responsive_Lightbox_Settings {
905
  */
906
  public function admin_menu_options() {
907
  add_options_page(
908
- __( 'Responsive Lightbox', 'responsive-lightbox' ), __( 'Responsive Lightbox', 'responsive-lightbox' ), 'manage_options', 'responsive-lightbox', array( $this, 'options_page' )
909
  );
910
  }
911
 
@@ -1283,7 +1283,7 @@ class Responsive_Lightbox_Settings {
1283
  */
1284
  public function validate_settings( $input ) {
1285
  // check cap
1286
- if ( ! current_user_can( 'manage_options') ) {
1287
  return $input;
1288
  }
1289
 
@@ -1453,7 +1453,7 @@ class Responsive_Lightbox_Settings {
1453
  public function validate_licenses( $input ) {
1454
 
1455
  // check cap
1456
- if ( ! current_user_can( 'manage_options') ) {
1457
  return $input;
1458
  }
1459
 
905
  */
906
  public function admin_menu_options() {
907
  add_options_page(
908
+ __( 'Responsive Lightbox', 'responsive-lightbox' ), __( 'Responsive Lightbox', 'responsive-lightbox' ), apply_filters( 'rl_lightbox_settings_capability', 'manage_options' ), 'responsive-lightbox', array( $this, 'options_page' )
909
  );
910
  }
911
 
1283
  */
1284
  public function validate_settings( $input ) {
1285
  // check cap
1286
+ if ( ! current_user_can( apply_filters( 'rl_lightbox_settings_capability', 'manage_options' ) ) ) {
1287
  return $input;
1288
  }
1289
 
1453
  public function validate_licenses( $input ) {
1454
 
1455
  // check cap
1456
+ if ( ! current_user_can( apply_filters( 'rl_lightbox_settings_capability', 'manage_options' ) ) ) {
1457
  return $input;
1458
  }
1459
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.dfactory.eu/
4
  Tags: gallery, images, lightbox, links, photos, template, theme, photo, image, picture, slideshow, modal, overlay, YouTube, Vimeo, video, videos
5
  Requires at least: 4.0
6
  Tested up to: 4.3.1
7
- Stable tag: 1.6.4
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
@@ -74,6 +74,10 @@ No questions yet.
74
 
75
  == Changelog ==
76
 
 
 
 
 
77
  = 1.6.4 =
78
  * Tweak: prettyPhoto improvements for mobile devices
79
 
@@ -267,5 +271,6 @@ Initial release
267
 
268
  == Upgrade Notice ==
269
 
270
- = 1.6.4 =
271
- * Tweak: prettyPhoto improvements for mobile devices
 
4
  Tags: gallery, images, lightbox, links, photos, template, theme, photo, image, picture, slideshow, modal, overlay, YouTube, Vimeo, video, videos
5
  Requires at least: 4.0
6
  Tested up to: 4.3.1
7
+ Stable tag: 1.6.5
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
74
 
75
  == Changelog ==
76
 
77
+ = 1.6.5 =
78
+ * Fix: Lightbox activated on non-video youtube links
79
+ * Tweak: Added a way to change settings required capability
80
+
81
  = 1.6.4 =
82
  * Tweak: prettyPhoto improvements for mobile devices
83
 
271
 
272
  == Upgrade Notice ==
273
 
274
+ = 1.6.5 =
275
+ * Fix: Lightbox activated on non-video youtube links
276
+ * Tweak: Added a way to change settings required capability
responsive-lightbox.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Responsive Lightbox
4
  Description: Responsive Lightbox allows users to view larger versions of images and galleries in a lightbox (overlay) effect optimized for mobile devices.
5
- Version: 1.6.4
6
  Author: dFactory
7
  Author URI: http://www.dfactory.eu/
8
  Plugin URI: http://www.dfactory.eu/plugins/responsive-lightbox/
@@ -36,7 +36,7 @@ include_once( RESPONSIVE_LIGHTBOX_PATH . 'includes/class-settings.php' );
36
  * Responsive Lightbox class.
37
  *
38
  * @class Responsive_Lightbox
39
- * @version 1.6.4
40
  */
41
  class Responsive_Lightbox {
42
 
@@ -146,7 +146,7 @@ class Responsive_Lightbox {
146
  'pagination_type' => 'thumbnails'
147
  )
148
  ),
149
- 'version' => '1.6.4'
150
  );
151
  public $options = array();
152
  private $notices = array();
@@ -399,7 +399,7 @@ class Responsive_Lightbox {
399
  * Add links to Settings page
400
  */
401
  public function plugin_settings_link( $links, $file ) {
402
- if ( ! is_admin() || ! current_user_can( 'manage_options' ) )
403
  return $links;
404
 
405
  static $plugin;
2
  /*
3
  Plugin Name: Responsive Lightbox
4
  Description: Responsive Lightbox allows users to view larger versions of images and galleries in a lightbox (overlay) effect optimized for mobile devices.
5
+ Version: 1.6.5
6
  Author: dFactory
7
  Author URI: http://www.dfactory.eu/
8
  Plugin URI: http://www.dfactory.eu/plugins/responsive-lightbox/
36
  * Responsive Lightbox class.
37
  *
38
  * @class Responsive_Lightbox
39
+ * @version 1.6.5
40
  */
41
  class Responsive_Lightbox {
42
 
146
  'pagination_type' => 'thumbnails'
147
  )
148
  ),
149
+ 'version' => '1.6.5'
150
  );
151
  public $options = array();
152
  private $notices = array();
399
  * Add links to Settings page
400
  */
401
  public function plugin_settings_link( $links, $file ) {
402
+ if ( ! is_admin() || ! current_user_can( apply_filters( 'rl_lightbox_settings_capability', 'manage_options' ) ) )
403
  return $links;
404
 
405
  static $plugin;