Business Directory Plugin - Version 5.1.6.1

Version Description

Download this release

Release Info

Developer businessdirectoryplugin
Plugin Icon 128x128 Business Directory Plugin
Version 5.1.6.1
Comparing to
See all releases

Code changes from version 5.1.6 to 5.1.6.1

README.TXT CHANGED
@@ -5,8 +5,8 @@ Tags: business directory, directory plugin, company business directory, chamber
5
  Requires at least: 4.3
6
  Requires PHP: 5.6
7
  Tested up to: 4.9.2
8
- Last Updated: 2018-Jan-24
9
- Stable tag: 5.1.6
10
  License: GPLv2 or later
11
 
12
  Build any kind of local directory, directory of business providers, a Yellow-Pages business directory, Yelp-like review directory and much more!
@@ -143,6 +143,9 @@ If you are having problems please visit [support forum](http://www.businessdirec
143
 
144
 
145
  == Changelog ==
 
 
 
146
  = Version 5.1.6 =
147
  * Add support to require that one image is uploaded with a listing.
148
  * Add Flag Listing feature.
5
  Requires at least: 4.3
6
  Requires PHP: 5.6
7
  Tested up to: 4.9.2
8
+ Last Updated: 2018-Jan-26
9
+ Stable tag: 5.1.6.1
10
  License: GPLv2 or later
11
 
12
  Build any kind of local directory, directory of business providers, a Yellow-Pages business directory, Yelp-like review directory and much more!
143
 
144
 
145
  == Changelog ==
146
+ = Version 5.1.6 =
147
+ * Fixed issue where PHP versions earlier than 5.6 had fatal error in flagging
148
+
149
  = Version 5.1.6 =
150
  * Add support to require that one image is uploaded with a listing.
151
  * Add Flag Listing feature.
business-directory-plugin.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Business Directory Plugin
4
  * Plugin URI: https://www.businessdirectoryplugin.com
5
  * Description: Provides the ability to maintain a free or paid business directory on your WordPress powered site.
6
- * Version: 5.1.6
7
  * Author: D. Rodenbaugh
8
  * Author URI: https://businessdirectoryplugin.com
9
  * Text Domain: WPBDM
3
  * Plugin Name: Business Directory Plugin
4
  * Plugin URI: https://www.businessdirectoryplugin.com
5
  * Description: Provides the ability to maintain a free or paid business directory on your WordPress powered site.
6
+ * Version: 5.1.6.1
7
  * Author: D. Rodenbaugh
8
  * Author URI: https://businessdirectoryplugin.com
9
  * Text Domain: WPBDM
includes/class-wpbdp.php CHANGED
@@ -15,7 +15,7 @@ final class WPBDP {
15
  }
16
 
17
  private function setup_constants() {
18
- define( 'WPBDP_VERSION', '5.1.6' );
19
 
20
  define( 'WPBDP_PATH', wp_normalize_path( plugin_dir_path( WPBDP_PLUGIN_FILE ) ) );
21
  define( 'WPBDP_INC', trailingslashit( WPBDP_PATH . 'includes' ) );
15
  }
16
 
17
  private function setup_constants() {
18
+ define( 'WPBDP_VERSION', '5.1.6.1' );
19
 
20
  define( 'WPBDP_PATH', wp_normalize_path( plugin_dir_path( WPBDP_PLUGIN_FILE ) ) );
21
  define( 'WPBDP_INC', trailingslashit( WPBDP_PATH . 'includes' ) );
includes/helpers/listing_flagging.php CHANGED
@@ -73,7 +73,7 @@ class WPBDP__Listing_Flagging {
73
  return new WP_Error( 'missing_data', _x( 'User ID or IP address is required to save a report', 'flag listing', 'WPBDM' ) );
74
  }
75
 
76
- if ( empty( $data[ 'reason' ] || empty( $data[ 'comments' ] ) ) ) {
77
  return new WP_Error( 'missing_data', _x( 'Report reason or comment is required to save a report', 'flag listing', 'WPBDM' ) );
78
  }
79
 
73
  return new WP_Error( 'missing_data', _x( 'User ID or IP address is required to save a report', 'flag listing', 'WPBDM' ) );
74
  }
75
 
76
+ if ( empty( $data[ 'reason' ] ) || empty( $data[ 'comments' ] ) ) {
77
  return new WP_Error( 'missing_data', _x( 'Report reason or comment is required to save a report', 'flag listing', 'WPBDM' ) );
78
  }
79