Business Directory Plugin - Version 3.7.1

Version Description

Download this release

Release Info

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

Code changes from version 3.7 to 3.7.1

README.TXT CHANGED
@@ -4,8 +4,8 @@ Donate link: http://businessdirectoryplugin.com/premium-modules/
4
  Tags: business directory,directory,wordpress directory,wordpress directory plugin, wordpress directory theme,wordpress business directory,wordpress local directory,classified ads,classifieds,directory plugin,business directory plugin,directory widget,church directory,address book,address,member directory,members directory,city portal,city portal plugin,city guide plugin,city guide
5
  Requires at least: 4.0
6
  Tested up to: 4.4.1
7
- Last Updated: 2016-Jan-21
8
- Stable tag: tags/3.7
9
  License: GPLv2 or later
10
 
11
  Build any kind of local directory, directory of business providers, a Yellow-Pages business directory, Yelp-like review directory and much more!
@@ -116,6 +116,9 @@ If you are having problems please visit [support forum](http://www.businessdirec
116
 
117
 
118
  == Changelog ==
 
 
 
119
  = Version 3.7 =
120
  * NEW: Improved Fee admin interface
121
  * NEW: Allow content fields to use a WYSIWYG editor on the frontend.
4
  Tags: business directory,directory,wordpress directory,wordpress directory plugin, wordpress directory theme,wordpress business directory,wordpress local directory,classified ads,classifieds,directory plugin,business directory plugin,directory widget,church directory,address book,address,member directory,members directory,city portal,city portal plugin,city guide plugin,city guide
5
  Requires at least: 4.0
6
  Tested up to: 4.4.1
7
+ Last Updated: 2016-Jan-26
8
+ Stable tag: tags/3.7.1
9
  License: GPLv2 or later
10
 
11
  Build any kind of local directory, directory of business providers, a Yellow-Pages business directory, Yelp-like review directory and much more!
116
 
117
 
118
  == Changelog ==
119
+ = Version 3.7.1 =
120
+ * Fixed bug where users can't change the category on listings during submit
121
+
122
  = Version 3.7 =
123
  * NEW: Improved Fee admin interface
124
  * NEW: Allow content fields to use a WYSIWYG editor on the frontend.
business-directory-plugin.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Business Directory Plugin
4
  * Plugin URI: http://www.businessdirectoryplugin.com
5
  * Description: Provides the ability to maintain a free or paid business directory on your WordPress powered site.
6
- * Version: 3.7
7
  * Author: D. Rodenbaugh
8
  * Author URI: http://businessdirectoryplugin.com
9
  * Text Domain: WPBDM
@@ -31,7 +31,7 @@
31
  if( preg_match( '#' . basename( __FILE__ ) . '#', $_SERVER['PHP_SELF'] ) )
32
  exit();
33
 
34
- define( 'WPBDP_VERSION', '3.7' );
35
 
36
  define( 'WPBDP_PATH', plugin_dir_path( __FILE__ ) );
37
  define( 'WPBDP_URL', trailingslashit( plugins_url( '/', __FILE__ ) ) );
3
  * Plugin Name: Business Directory Plugin
4
  * Plugin URI: http://www.businessdirectoryplugin.com
5
  * Description: Provides the ability to maintain a free or paid business directory on your WordPress powered site.
6
+ * Version: 3.7.1
7
  * Author: D. Rodenbaugh
8
  * Author URI: http://businessdirectoryplugin.com
9
  * Text Domain: WPBDM
31
  if( preg_match( '#' . basename( __FILE__ ) . '#', $_SERVER['PHP_SELF'] ) )
32
  exit();
33
 
34
+ define( 'WPBDP_VERSION', '3.7.1' );
35
 
36
  define( 'WPBDP_PATH', plugin_dir_path( __FILE__ ) );
37
  define( 'WPBDP_URL', trailingslashit( plugins_url( '/', __FILE__ ) ) );
core/class-listing.php CHANGED
@@ -403,11 +403,11 @@ class WPBDP_Listing {
403
 
404
  if ( $charge ) {
405
  $payment = new WPBDP_Payment( array( 'listing_id' => $this->id ) );
406
- $payment->add_category_fee_item( $category_id, $fee_options[0] );
407
  $payment->set_status( WPBDP_Payment::STATUS_COMPLETED );
408
  $payment->save();
409
  } else {
410
- $this->add_category( $category_id, $fee_options[0] );
411
  }
412
  }
413
  }
403
 
404
  if ( $charge ) {
405
  $payment = new WPBDP_Payment( array( 'listing_id' => $this->id ) );
406
+ $payment->add_category_fee_item( $category_id, reset( $fee_options ) );
407
  $payment->set_status( WPBDP_Payment::STATUS_COMPLETED );
408
  $payment->save();
409
  } else {
410
+ $this->add_category( $category_id, reset( $fee_options ) );
411
  }
412
  }
413
  }