Gallery by BestWebSoft - Version 4.5.7

Version Description

  • 03.09.2018
Download this release

Release Info

Developer bestwebsoft
Plugin Icon 128x128 Gallery by BestWebSoft
Version 4.5.7
Comparing to
See all releases

Code changes from version 4.5.6 to 4.5.7

gallery-plugin.php CHANGED
@@ -6,7 +6,7 @@ Description: Add beautiful galleries, albums & images to your Wordpress website
6
  Author: BestWebSoft
7
  Text Domain: gallery-plugin
8
  Domain Path: /languages
9
- Version: 4.5.6
10
  Author URI: https://bestwebsoft.com/
11
  License: GPLv2 or later
12
  */
@@ -403,8 +403,8 @@ if ( ! function_exists( 'gllr_post_type_images' ) ) {
403
  $def_term_id = ( array_shift( $def_term_info ) );
404
  }
405
  }
406
-
407
- if ( ! in_array( 'bws-gallery', get_option( 'rewrite_rules' ) ) || $force_flush_rules || ( isset( $gllr_options["flush_rewrite_rules"] ) && 1 == $gllr_options["flush_rewrite_rules"] ) ) {
408
  flush_rewrite_rules();
409
  $gllr_options["flush_rewrite_rules"] = 0;
410
  update_option( 'gllr_options', $gllr_options );
6
  Author: BestWebSoft
7
  Text Domain: gallery-plugin
8
  Domain Path: /languages
9
+ Version: 4.5.7
10
  Author URI: https://bestwebsoft.com/
11
  License: GPLv2 or later
12
  */
403
  $def_term_id = ( array_shift( $def_term_info ) );
404
  }
405
  }
406
+ $rewrite_rules = get_option( 'rewrite_rules' );
407
+ if ( is_array( $rewrite_rules ) && ! empty( $rewrite_rules ) && ! in_array( 'bws-gallery', $rewrite_rules ) || $force_flush_rules || ( isset( $gllr_options["flush_rewrite_rules"] ) && 1 == $gllr_options["flush_rewrite_rules"] ) ) {
408
  flush_rewrite_rules();
409
  $gllr_options["flush_rewrite_rules"] = 0;
410
  update_option( 'gllr_options', $gllr_options );
includes/class-gllr-settings.php CHANGED
@@ -200,7 +200,7 @@ if ( ! class_exists( 'Gllr_Settings_Tabs' ) ) {
200
  'post_type' => $this->default_options['post_type_name']
201
  ),
202
  array(
203
- 'post_type' => $this->options['post_type_name']
204
  )
205
  );
206
  $this->options['post_type_name'] = $this->default_options['post_type_name'];
@@ -909,13 +909,15 @@ if ( ! class_exists( 'Gllr_Settings_Tabs' ) ) {
909
  * @access public
910
  */
911
  public function additional_misc_options_affected() {
912
- global $wp_version;
913
  if ( ! $this->all_plugins ) {
914
  if ( ! function_exists( 'get_plugins' ) )
915
  require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
916
  $this->all_plugins = get_plugins();
917
  }
918
- if ( $this->options['post_type_name'] != $this->default_options['post_type_name'] ) { ?>
 
 
919
  <tr valign="top">
920
  <th scope="row"><?php _e( 'Gallery Post Type', 'gallery-plugin' ); ?></th>
921
  <td>
200
  'post_type' => $this->default_options['post_type_name']
201
  ),
202
  array(
203
+ 'post_type' => 'gallery'
204
  )
205
  );
206
  $this->options['post_type_name'] = $this->default_options['post_type_name'];
909
  * @access public
910
  */
911
  public function additional_misc_options_affected() {
912
+ global $wp_version, $wpdb;
913
  if ( ! $this->all_plugins ) {
914
  if ( ! function_exists( 'get_plugins' ) )
915
  require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
916
  $this->all_plugins = get_plugins();
917
  }
918
+ $old_post_type_gallery = $wpdb->get_col( "SELECT ID FROM $wpdb->posts WHERE post_type = 'gallery'" );
919
+
920
+ if ( ! empty( $old_post_type_gallery ) ) { ?>
921
  <tr valign="top">
922
  <th scope="row"><?php _e( 'Gallery Post Type', 'gallery-plugin' ); ?></th>
923
  <td>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://bestwebsoft.com/donate/
4
  Tags: add album, add galleries, add images, add pictures, add albums, gallery, gallery plugin, gallery slider, fancy gallery, slideshow, lightbox, fullscreen gallery
5
  Requires at least: 4.0
6
  Tested up to: 4.9.8
7
- Stable tag: 4.5.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -31,8 +31,8 @@ https://www.youtube.com/watch?v=aydaTdOpaRM
31
  * Column
32
  * Rows
33
  * Change image for album cover and its dimensions
34
- * Disable image opening from the thumbnail in a single gallery [NEW]
35
- * Set default sorting order for images by: [NEW]
36
  * Attachment ID
37
  * Image Name
38
  * Date
@@ -40,7 +40,7 @@ https://www.youtube.com/watch?v=aydaTdOpaRM
40
  * Random
41
  * ASC (ascending order from lowest to highest values)
42
  * DESC (descending order from highest to lowest values)
43
- * Set default gallery projects sorting order by: [NEW]
44
  * Gallery ID
45
  * Title
46
  * Date
@@ -226,6 +226,9 @@ Please make sure that the problem hasn't been discussed yet on our forum (<https
226
 
227
  == Changelog ==
228
 
 
 
 
229
  = V4.5.6 - 27.08.2018 =
230
  * Bugfix: The bug with the rewrite rules has been fixed.
231
 
@@ -650,6 +653,9 @@ Please make sure that the problem hasn't been discussed yet on our forum (<https
650
 
651
  == Upgrade Notice ==
652
 
 
 
 
653
  = V4.5.6 =
654
  * Bugs fixed.
655
 
4
  Tags: add album, add galleries, add images, add pictures, add albums, gallery, gallery plugin, gallery slider, fancy gallery, slideshow, lightbox, fullscreen gallery
5
  Requires at least: 4.0
6
  Tested up to: 4.9.8
7
+ Stable tag: 4.5.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
31
  * Column
32
  * Rows
33
  * Change image for album cover and its dimensions
34
+ * Disable image opening from the thumbnail in a single gallery
35
+ * Set default sorting order for images by:
36
  * Attachment ID
37
  * Image Name
38
  * Date
40
  * Random
41
  * ASC (ascending order from lowest to highest values)
42
  * DESC (descending order from highest to lowest values)
43
+ * Set default gallery projects sorting order by:
44
  * Gallery ID
45
  * Title
46
  * Date
226
 
227
  == Changelog ==
228
 
229
+ = V4.5.7 - 03.09.2018 =
230
+ * Bugfix: The bugs with the rewrite rules and the compatibility with third-party products have been fixed.
231
+
232
  = V4.5.6 - 27.08.2018 =
233
  * Bugfix: The bug with the rewrite rules has been fixed.
234
 
653
 
654
  == Upgrade Notice ==
655
 
656
+ = V4.5.7 =
657
+ * Bugs fixed.
658
+
659
  = V4.5.6 =
660
  * Bugs fixed.
661
 
screenshot-8.png CHANGED
Binary file