Version Description
Download this release
Release Info
Developer | businessdirectoryplugin |
Plugin | Business Directory Plugin |
Version | 4.1.13.1 |
Comparing to | |
See all releases |
Code changes from version 4.1.13 to 4.1.13.1
README.TXT
CHANGED
@@ -5,7 +5,7 @@ Tags: business directory, directory plugin, company business directory, chamber
|
|
5 |
Requires at least: 4.3
|
6 |
Tested up to: 4.7.6
|
7 |
Last Updated: 2017-Jun-5
|
8 |
-
Stable tag: 4.1.13
|
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!
|
@@ -143,6 +143,9 @@ If you are having problems please visit [support forum](http://www.businessdirec
|
|
143 |
|
144 |
== Changelog ==
|
145 |
|
|
|
|
|
|
|
146 |
= Version 4.1.13 =
|
147 |
* Add shortcode to output Quick Search.
|
148 |
* Added shortcode for displaying the latest listings.
|
5 |
Requires at least: 4.3
|
6 |
Tested up to: 4.7.6
|
7 |
Last Updated: 2017-Jun-5
|
8 |
+
Stable tag: 4.1.13.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!
|
143 |
|
144 |
== Changelog ==
|
145 |
|
146 |
+
= Version 4.1.13.1 =
|
147 |
+
- Fix theme compatibility problems introduced in 4.1.13.
|
148 |
+
|
149 |
= Version 4.1.13 =
|
150 |
* Add shortcode to output Quick Search.
|
151 |
* Added shortcode for displaying the latest listings.
|
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: 4.1.13
|
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', '4.1.13' );
|
35 |
|
36 |
define( 'WPBDP_PATH', wp_normalize_path( plugin_dir_path( __FILE__ ) ) );
|
37 |
define( 'WPBDP_INC', trailingslashit( WPBDP_PATH . 'includes' ) );
|
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: 4.1.13.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', '4.1.13.1' );
|
35 |
|
36 |
define( 'WPBDP_PATH', wp_normalize_path( plugin_dir_path( __FILE__ ) ) );
|
37 |
define( 'WPBDP_INC', trailingslashit( WPBDP_PATH . 'includes' ) );
|
includes/class-wordpress-template-integration.php
CHANGED
@@ -75,51 +75,35 @@ class WPBDP__WordPress_Template_Integration {
|
|
75 |
remove_filter( 'the_content', 'wpautop' );
|
76 |
// TODO: we should probably be more clever here to avoid conflicts. Run last so other hooks don't break our
|
77 |
// output.
|
78 |
-
add_filter( 'the_content', array( $this, 'remove_spoofed_data' ), 4 );
|
79 |
add_filter( 'the_content', array( $this, 'display_view_in_content' ), 5 );
|
80 |
-
add_filter( 'the_content', array( $this, 'maybe_end_query' ), 6 );
|
81 |
remove_action( 'loop_start', array( $this, 'setup_post_hooks' ) );
|
82 |
}
|
83 |
|
84 |
-
public function spoof_post(
|
85 |
-
$GLOBALS['post'] =
|
86 |
remove_action( 'the_post', array( $this, 'spoof_post' ) );
|
87 |
}
|
88 |
|
89 |
-
public function remove_spoofed_data( $content ) {
|
90 |
-
remove_filter( 'the_content', array( $this, 'remove_spoofed_data' ), 4 );
|
91 |
-
|
92 |
-
$this->restore_things();
|
93 |
-
|
94 |
-
return $content;
|
95 |
-
}
|
96 |
-
|
97 |
public function display_view_in_content( $content = '' ) {
|
98 |
-
remove_filter( 'the_content', array( $this, 'display_view_in_content' ), 5 );
|
99 |
-
|
100 |
if ( $this->displayed ) {
|
|
|
101 |
return '';
|
102 |
}
|
103 |
|
|
|
104 |
// add_filter( 'the_content', 'wpautop' );
|
|
|
105 |
|
106 |
$html = wpbdp_current_view_output();
|
107 |
|
|
|
|
|
|
|
108 |
$this->displayed = true;
|
109 |
|
110 |
return $html;
|
111 |
}
|
112 |
|
113 |
-
public function maybe_end_query( $content ) {
|
114 |
-
remove_filter( 'the_content', array( $this, 'maybe_end_query' ), 6 );
|
115 |
-
|
116 |
-
if ( ! is_404() ) {
|
117 |
-
$this->end_query();
|
118 |
-
}
|
119 |
-
|
120 |
-
return $content;
|
121 |
-
}
|
122 |
-
|
123 |
public function modify_global_post_title( $title = '' ) {
|
124 |
global $post;
|
125 |
|
75 |
remove_filter( 'the_content', 'wpautop' );
|
76 |
// TODO: we should probably be more clever here to avoid conflicts. Run last so other hooks don't break our
|
77 |
// output.
|
|
|
78 |
add_filter( 'the_content', array( $this, 'display_view_in_content' ), 5 );
|
|
|
79 |
remove_action( 'loop_start', array( $this, 'setup_post_hooks' ) );
|
80 |
}
|
81 |
|
82 |
+
public function spoof_post() {
|
83 |
+
$GLOBALS['post'] = $this->spoofed_post();
|
84 |
remove_action( 'the_post', array( $this, 'spoof_post' ) );
|
85 |
}
|
86 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
public function display_view_in_content( $content = '' ) {
|
|
|
|
|
88 |
if ( $this->displayed ) {
|
89 |
+
remove_filter( 'the_content', array( $this, 'display_view_in_content' ), 5 );
|
90 |
return '';
|
91 |
}
|
92 |
|
93 |
+
remove_filter( 'the_content', array( $this, 'display_view_in_content' ), 5 );
|
94 |
// add_filter( 'the_content', 'wpautop' );
|
95 |
+
$this->restore_things();
|
96 |
|
97 |
$html = wpbdp_current_view_output();
|
98 |
|
99 |
+
if ( ! is_404() )
|
100 |
+
$this->end_query();
|
101 |
+
|
102 |
$this->displayed = true;
|
103 |
|
104 |
return $html;
|
105 |
}
|
106 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
107 |
public function modify_global_post_title( $title = '' ) {
|
108 |
global $post;
|
109 |
|
includes/compatibility/class-themes-compat.php
CHANGED
@@ -55,7 +55,6 @@ class WPBDP__Themes_Compat {
|
|
55 |
'takeawaywp',
|
56 |
'foodiepro-2.1.8',
|
57 |
'ultimatum',
|
58 |
-
'xpro',
|
59 |
);
|
60 |
|
61 |
return apply_filters( 'wpbdp_themes_with_fixes_list', $themes_with_fixes );
|
@@ -357,36 +356,6 @@ class WPBDP__Themes_Compat {
|
|
357 |
return $instance;
|
358 |
}
|
359 |
|
360 |
-
/**
|
361 |
-
* @since 4.1.13
|
362 |
-
*/
|
363 |
-
public function theme_xpro() {
|
364 |
-
add_filter( 'wpbdp_spoofed_post', array( $this, 'theme_xpro_filter_spoofed_post' ), 10, 3 );
|
365 |
-
}
|
366 |
-
|
367 |
-
/**
|
368 |
-
* @since 4.1.13
|
369 |
-
*/
|
370 |
-
public function theme_xpro_filter_spoofed_post( $spoofed_post, $template_integration, $post ) {
|
371 |
-
remove_filter( 'the_content', array( $template_integration, 'display_view_in_content' ), 5 );
|
372 |
-
add_filter( 'the_content', array( $this, 'theme_xpro_filter_spoofed_post_content' ), 5 );
|
373 |
-
|
374 |
-
return $spoofed_post;
|
375 |
-
}
|
376 |
-
|
377 |
-
/**
|
378 |
-
* @since 4.1.13
|
379 |
-
*/
|
380 |
-
public function theme_xpro_filter_spoofed_post_content( $content ) {
|
381 |
-
$page = get_page( wpbdp_get_page_id( 'main' ) );
|
382 |
-
|
383 |
-
if ( ! $page ) {
|
384 |
-
return $content;
|
385 |
-
}
|
386 |
-
|
387 |
-
return do_shortcode( $page->post_content );
|
388 |
-
}
|
389 |
-
|
390 |
|
391 |
//
|
392 |
// }}
|
55 |
'takeawaywp',
|
56 |
'foodiepro-2.1.8',
|
57 |
'ultimatum',
|
|
|
58 |
);
|
59 |
|
60 |
return apply_filters( 'wpbdp_themes_with_fixes_list', $themes_with_fixes );
|
356 |
return $instance;
|
357 |
}
|
358 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
359 |
|
360 |
//
|
361 |
// }}
|