Business Directory Plugin - Version 3.6.12

Version Description

Download this release

Release Info

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

Code changes from version 3.6.11 to 3.6.12

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
7
- Last Updated: 2015-Dec-15
8
- Stable tag: tags/3.6.11
9
  License: GPLv2 or later
10
 
11
  Build local directories, business provider listings, Yellow-Pages directories, Yelp-like review sections 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.6.11 =
120
  * Allow content fields to use a WYSIWYG editor on the frontend.
121
  * Listing images can now be re-ordered by drag and drop.
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
7
+ Last Updated: 2015-Dec-16
8
+ Stable tag: tags/3.6.12
9
  License: GPLv2 or later
10
 
11
  Build local directories, business provider listings, Yellow-Pages directories, Yelp-like review sections and much more!
116
 
117
 
118
  == Changelog ==
119
+ = Version 3.6.12 =
120
+ * Fixed bug where get_current_screen changed behavior in WP API and documented use changed, making it potentially unsafe on admin_init hook. Added conditional to fix on some configs.
121
+
122
  = Version 3.6.11 =
123
  * Allow content fields to use a WYSIWYG editor on the frontend.
124
  * Listing images can now be re-ordered by drag and drop.
admin/class-admin-listings.php CHANGED
@@ -45,9 +45,18 @@ class WPBDP_Admin_Listings {
45
  }
46
 
47
  function _apply_category_filter( $query ) {
 
 
 
 
 
 
48
  $screen = get_current_screen();
49
 
50
- if ( ! is_admin() || 'edit' != $screen->base || WPBDP_POST_TYPE != $screen->post_type )
 
 
 
51
  return;
52
 
53
  if ( empty( $query->query_vars[ WPBDP_CATEGORY_TAX ] ) || ! is_numeric( $query->query_vars[ WPBDP_CATEGORY_TAX ] ) )
45
  }
46
 
47
  function _apply_category_filter( $query ) {
48
+ if ( ! is_admin() )
49
+ return;
50
+
51
+ if ( ! function_exists( 'get_current_screen' ) )
52
+ return;
53
+
54
  $screen = get_current_screen();
55
 
56
+ if ( ! $screen )
57
+ return;
58
+
59
+ if ( 'edit' != $screen->base || WPBDP_POST_TYPE != $screen->post_type )
60
  return;
61
 
62
  if ( empty( $query->query_vars[ WPBDP_CATEGORY_TAX ] ) || ! is_numeric( $query->query_vars[ WPBDP_CATEGORY_TAX ] ) )
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.6.11
7
  * Author: D. Rodenbaugh
8
  * Author URI: http://businessdirectoryplugin.com
9
  * License: GPLv2 or any later version
@@ -29,7 +29,7 @@
29
  if( preg_match( '#' . basename( __FILE__ ) . '#', $_SERVER['PHP_SELF'] ) )
30
  exit();
31
 
32
- define( 'WPBDP_VERSION', '3.6.11' );
33
 
34
  define( 'WPBDP_PATH', plugin_dir_path( __FILE__ ) );
35
  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.6.12
7
  * Author: D. Rodenbaugh
8
  * Author URI: http://businessdirectoryplugin.com
9
  * License: GPLv2 or any later version
29
  if( preg_match( '#' . basename( __FILE__ ) . '#', $_SERVER['PHP_SELF'] ) )
30
  exit();
31
 
32
+ define( 'WPBDP_VERSION', '3.6.12' );
33
 
34
  define( 'WPBDP_PATH', plugin_dir_path( __FILE__ ) );
35
  define( 'WPBDP_URL', trailingslashit( plugins_url( '/', __FILE__ ) ) );