Business Directory Plugin - Version 3.5.7

Version Description

Download this release

Release Info

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

Code changes from version 3.5.6 to 3.5.7

Files changed (3) hide show
  1. README.TXT +4 -1
  2. business-directory-plugin.php +2 -2
  3. core/seo.php +13 -2
README.TXT CHANGED
@@ -5,7 +5,7 @@ Tags: wordpress directory,wordpress directory plugin, wordpress directory theme,
5
  Requires at least: 3.7
6
  Tested up to: 4.1
7
  Last Updated: 2015-Feb-17
8
- Stable tag: tags/3.5.6
9
  License: GPLv2 or later
10
 
11
  Build local directories, business provider listings, Yellow-Pages directories, Yelp-like review sections and much more!
@@ -111,6 +111,9 @@ If you are having problems please visit [support forum](http://www.businessdirec
111
 
112
 
113
  == Changelog ==
 
 
 
114
  = Version 3.5.6 =
115
  * Emergency Yoast SEO patch to fix issue with metadesc() API change (1.7.2 and higher in Yoast)
116
 
5
  Requires at least: 3.7
6
  Tested up to: 4.1
7
  Last Updated: 2015-Feb-17
8
+ Stable tag: tags/3.5.7
9
  License: GPLv2 or later
10
 
11
  Build local directories, business provider listings, Yellow-Pages directories, Yelp-like review sections and much more!
111
 
112
 
113
  == Changelog ==
114
+ = Version 3.5.7 =
115
+ * Second emergency Yoast SEO patch to fix issue with get_content_title() API change (1.7.2 and higher in Yoast)
116
+
117
  = Version 3.5.6 =
118
  * Emergency Yoast SEO patch to fix issue with metadesc() API change (1.7.2 and higher in Yoast)
119
 
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.5.6
7
  * Author: D. Rodenbaugh
8
  * Author URI: http://businessdirectoryplugin.com
9
  * License: GPLv2 or any later version
@@ -30,7 +30,7 @@
30
  if( preg_match( '#' . basename( __FILE__ ) . '#', $_SERVER['PHP_SELF'] ) )
31
  exit();
32
 
33
- define( 'WPBDP_VERSION', '3.5.6' );
34
 
35
  define( 'WPBDP_PATH', plugin_dir_path( __FILE__ ) );
36
  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.5.7
7
  * Author: D. Rodenbaugh
8
  * Author URI: http://businessdirectoryplugin.com
9
  * License: GPLv2 or any later version
30
  if( preg_match( '#' . basename( __FILE__ ) . '#', $_SERVER['PHP_SELF'] ) )
31
  exit();
32
 
33
+ define( 'WPBDP_VERSION', '3.5.7' );
34
 
35
  define( 'WPBDP_PATH', plugin_dir_path( __FILE__ ) );
36
  define( 'WPBDP_URL', trailingslashit( plugins_url( '/', __FILE__ ) ) );
core/seo.php CHANGED
@@ -8,7 +8,12 @@ class WPBDP_SEO {
8
 
9
  public static function listing_title( $listing_id ) {
10
  if ( self::is_wp_seo_enabled() ) {
11
- global $wpseo_front;
 
 
 
 
 
12
 
13
  $title = $wpseo_front->get_content_title( get_post( $listing_id ) );
14
  $title = esc_html( strip_tags( stripslashes( apply_filters( 'wpseo_title', $title ) ) ) );
@@ -21,7 +26,13 @@ class WPBDP_SEO {
21
 
22
  public static function listing_og_description( $listing_id ) {
23
  if ( self::is_wp_seo_enabled() ) {
24
- global $wpseo_front;
 
 
 
 
 
 
25
  global $post;
26
 
27
  $prev_post = $post;
8
 
9
  public static function listing_title( $listing_id ) {
10
  if ( self::is_wp_seo_enabled() ) {
11
+ $wpseo_front = null;
12
+
13
+ if ( isset( $GLOBALS['wpseo_front'] ) )
14
+ $wpseo_front = $GLOBALS['wpseo_front'];
15
+ elseif ( class_exists( 'WPSEO_Frontend' ) && method_exists( 'WPSEO_Frontend', 'get_instance' ) )
16
+ $wpseo_front = WPSEO_Frontend::get_instance();
17
 
18
  $title = $wpseo_front->get_content_title( get_post( $listing_id ) );
19
  $title = esc_html( strip_tags( stripslashes( apply_filters( 'wpseo_title', $title ) ) ) );
26
 
27
  public static function listing_og_description( $listing_id ) {
28
  if ( self::is_wp_seo_enabled() ) {
29
+ $wpseo_front = null;
30
+
31
+ if ( isset( $GLOBALS['wpseo_front'] ) )
32
+ $wpseo_front = $GLOBALS['wpseo_front'];
33
+ elseif ( class_exists( 'WPSEO_Frontend' ) && method_exists( 'WPSEO_Frontend', 'get_instance' ) )
34
+ $wpseo_front = WPSEO_Frontend::get_instance();
35
+
36
  global $post;
37
 
38
  $prev_post = $post;