Business Directory Plugin - Version 6.2.6

Version Description

Download this release

Release Info

Developer sswells
Plugin Icon 128x128 Business Directory Plugin
Version 6.2.6
Comparing to
See all releases

Code changes from version 6.2.5 to 6.2.6

README.TXT CHANGED
@@ -4,7 +4,7 @@ Tags: business directory, listings, directory plugin, staff directory, member di
4
  Requires at least: 4.8
5
  Requires PHP: 5.6
6
  Tested up to: 6.0
7
- Stable tag: 6.2.5
8
  License: GPLv2 or later
9
 
10
  The best WordPress Business Directory Plugin. Build an easy team directory, member directory, staff directory, church directory, and more.
@@ -158,6 +158,10 @@ Yes it is. However, you cannot "network activate" the plugin (as this will share
158
  This can be done under Plugins -> Add New as the Administrator user. Do not "network activate" as the "super admin".
159
 
160
  == Changelog ==
 
 
 
 
161
  = 6.2.5 =
162
  * If thumbnails are turned off, and images are showing in a gallery with the listing, then show the thumbnail image there too.
163
  * Set payment date and time to read only if there's a subscription.
@@ -219,32 +223,4 @@ This can be done under Plugins -> Add New as the Administrator user. Do not "net
219
  * Fix: Prevent duplicate heading in taxonomy modal when another plugin adds a heading.
220
  * New: wpbdp_tab_content hook for adding content to the settings tabs.
221
 
222
- = 6.0 =
223
- * New: Updated the admin area for a more enjoyable experience. This also shortens the main nav to make it easier to find links.
224
- * New: Add toggles in admin settings for a more visual UI.
225
- * New: Allow businessdirectory-listings shortcode without setting a category, and remove the directory header when the shortcode is used directly in a page.
226
- * New: Update the datepicker styling for a more modern look.
227
- * New: Added a notification center to keep all notifications in one spot instead of filling the top of the page.
228
- * Include datepicker CSS in plugin instead of loading it from the jQuery CDN.
229
- * Fix: When creating a listing from the admin area, the expiration was not getting automatically set.
230
- * Fix: Don't use removed settings when checking conditional logic in admin area. This was causing some settings to never show.
231
- * Fix: When validating file mime type, check the file extension too.
232
-
233
- = 5.18 =
234
- * New: Allow setting category in the [businessdirectory-featured-listings] shortcode.
235
- * Rename "Fee Plan" to "Plan" since they can be free.
236
- * Add modal confirmation for deleting a field and plan.
237
- * Add compatibility with block themes and Twenty Twenty Two theme.
238
- * Make the listing expiration date read-only if there's an active subscription. This prevents issues since the data doesn't update the subscription.
239
- * Fix: Images weren't uploading during listing imports.
240
- * Fix: Only load the admin BD scripts on BD pages.
241
- * Fix: The image ordering wasn't saving in the front-end listing form.
242
- * Fix: When creating a listing from the admin area, set the image limits based on the newly selected plan.
243
- * Fix: Don't show the "free" label in the plans table for variable plans.
244
- * Fix: All selecting a new plan when editing a listing if the previously selected plan is disabled.
245
- * Fix: Don't delete a removed image if it's attached to another post type.
246
- * Fix: The default BD theme showed the listing title twice.
247
- * Fix: The default plan wasn't showing up when enabled when used with paid plans.
248
- * Fix: The spacing between some action buttons and the listing thumbnail were too small.
249
-
250
  <a href="https://businessdirectoryplugin.com/plugins/business-directory/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion">See changelog for all versions</a>
4
  Requires at least: 4.8
5
  Requires PHP: 5.6
6
  Tested up to: 6.0
7
+ Stable tag: 6.2.6
8
  License: GPLv2 or later
9
 
10
  The best WordPress Business Directory Plugin. Build an easy team directory, member directory, staff directory, church directory, and more.
158
  This can be done under Plugins -> Add New as the Administrator user. Do not "network activate" as the "super admin".
159
 
160
  == Changelog ==
161
+ = 6.2.6 =
162
+ * Fix: Fatal error on category pages when CPT integration was disabled.
163
+ * Fix: Some themes (like Divi) showed repeat content on category pages.
164
+
165
  = 6.2.5 =
166
  * If thumbnails are turned off, and images are showing in a gallery with the listing, then show the thumbnail image there too.
167
  * Set payment date and time to read only if there's a subscription.
223
  * Fix: Prevent duplicate heading in taxonomy modal when another plugin adds a heading.
224
  * New: wpbdp_tab_content hook for adding content to the settings tabs.
225
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
226
  <a href="https://businessdirectoryplugin.com/plugins/business-directory/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion">See changelog for all versions</a>
business-directory-plugin.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Business Directory Plugin
4
  * Plugin URI: https://businessdirectoryplugin.com
5
  * Description: Provides the ability to maintain a free or paid business directory on your WordPress powered site.
6
- * Version: 6.2.5
7
  * Author: Business Directory Team
8
  * Author URI: https://businessdirectoryplugin.com
9
  * Text Domain: business-directory-plugin
3
  * Plugin Name: Business Directory Plugin
4
  * Plugin URI: https://businessdirectoryplugin.com
5
  * Description: Provides the ability to maintain a free or paid business directory on your WordPress powered site.
6
+ * Version: 6.2.6
7
  * Author: Business Directory Team
8
  * Author URI: https://businessdirectoryplugin.com
9
  * Text Domain: business-directory-plugin
includes/class-query-integration.php CHANGED
@@ -15,7 +15,7 @@ class WPBDP__Query_Integration {
15
  add_action( 'parse_query', array( $this, 'set_query_flags' ), 50 );
16
  add_action( 'template_redirect', array( $this, 'set_404_flag' ), 0 );
17
 
18
- add_action( 'pre_get_posts', array( $this, 'pre_get_posts' ), 10, 1 );
19
  add_filter( 'posts_clauses', array( $this, 'posts_clauses' ), 10, 2 );
20
 
21
  // Core sorting options.
@@ -62,6 +62,7 @@ class WPBDP__Query_Integration {
62
  $query->wpbdp_is_tag = false;
63
  $query->wpbdp_our_query = false;
64
  $query->wpbdp_is_shortcode = false;
 
65
 
66
  // Is this a listing query?
67
  // FIXME: this results in false positives frequently.
@@ -78,7 +79,6 @@ class WPBDP__Query_Integration {
78
  $query->wpbdp_view = 'show_category';
79
  }
80
 
81
- // wpbdp_debug_e( $query );
82
  $tags_slug = wpbdp_get_option( 'permalinks-tags-slug' );
83
  if ( ! empty( $query->query_vars[ WPBDP_TAGS_TAX ] ) ) {
84
  $query->wpbdp_is_tag = true;
@@ -178,7 +178,8 @@ class WPBDP__Query_Integration {
178
  }
179
 
180
  if ( $query->wpbdp_is_category || $query->wpbdp_is_tag ) {
181
- $current_post_types = $query->get( 'post_type' ) ? $query->get( 'post_type' ) : array();
 
182
 
183
  if ( ! is_array( $current_post_types ) ) {
184
  $current_post_types = array( $current_post_types );
15
  add_action( 'parse_query', array( $this, 'set_query_flags' ), 50 );
16
  add_action( 'template_redirect', array( $this, 'set_404_flag' ), 0 );
17
 
18
+ add_action( 'pre_get_posts', array( $this, 'pre_get_posts' ), 10 );
19
  add_filter( 'posts_clauses', array( $this, 'posts_clauses' ), 10, 2 );
20
 
21
  // Core sorting options.
62
  $query->wpbdp_is_tag = false;
63
  $query->wpbdp_our_query = false;
64
  $query->wpbdp_is_shortcode = false;
65
+ $query->wpbdp_in_the_loop = false;
66
 
67
  // Is this a listing query?
68
  // FIXME: this results in false positives frequently.
79
  $query->wpbdp_view = 'show_category';
80
  }
81
 
 
82
  $tags_slug = wpbdp_get_option( 'permalinks-tags-slug' );
83
  if ( ! empty( $query->query_vars[ WPBDP_TAGS_TAX ] ) ) {
84
  $query->wpbdp_is_tag = true;
178
  }
179
 
180
  if ( $query->wpbdp_is_category || $query->wpbdp_is_tag ) {
181
+ $post_type = $query->get( 'post_type' );
182
+ $current_post_types = $post_type ? $post_type : array();
183
 
184
  if ( ! is_array( $current_post_types ) ) {
185
  $current_post_types = array( $current_post_types );
includes/class-wordpress-template-integration.php CHANGED
@@ -43,6 +43,11 @@ class WPBDP__WordPress_Template_Integration {
43
 
44
  $allow_override = apply_filters( 'wpbdp_allow_template_override', true );
45
 
 
 
 
 
 
46
  if ( $allow_override ) {
47
  add_action( 'loop_start', array( $this, 'setup_post_hooks' ) );
48
  $page_template = get_query_template( 'page', $this->get_template_alternatives() );
@@ -81,10 +86,8 @@ class WPBDP__WordPress_Template_Integration {
81
  $this->prep_tax_head();
82
  }
83
 
84
- remove_filter( 'the_content', 'wpautop' );
85
-
86
  // Run last so other hooks don't break our output.
87
- add_filter( 'the_content', array( $this, 'display_view_in_content' ), 5 );
88
  remove_action( 'loop_start', array( $this, 'setup_post_hooks' ) );
89
  }
90
 
@@ -96,7 +99,6 @@ class WPBDP__WordPress_Template_Integration {
96
  public function prep_tax_head() {
97
  add_filter( 'the_title', array( &$this, 'set_tax_title' ) );
98
  add_filter( 'post_thumbnail_html', array( &$this, 'remove_tax_thumbnail' ) );
99
- add_filter( 'astra_featured_image_markup', array( &$this, 'remove_tax_thumbnail' ) );
100
  }
101
 
102
  /**
@@ -108,7 +110,8 @@ class WPBDP__WordPress_Template_Integration {
108
  * @return string
109
  */
110
  public function set_tax_title( $title ) {
111
- if ( in_the_loop() && WPBDP__Themes_Compat::is_block_theme() ) {
 
112
  return $title;
113
  }
114
 
@@ -124,14 +127,10 @@ class WPBDP__WordPress_Template_Integration {
124
  * @return string
125
  */
126
  public function remove_tax_thumbnail( $thumbnail ) {
127
- if ( WPBDP__Themes_Compat::is_block_theme() ) {
128
- if ( in_the_loop() ) {
129
- remove_filter( 'post_thumbnail_html', array( &$this, 'remove_tax_thumbnail' ) );
130
 
131
- return $thumbnail;
132
- }
133
- } else {
134
- remove_filter( 'post_thumbnail_html', array( &$this, 'remove_tax_thumbnail' ) );
135
  }
136
 
137
  // The caption shows in 2021 theme.
@@ -140,6 +139,18 @@ class WPBDP__WordPress_Template_Integration {
140
  return '';
141
  }
142
 
 
 
 
 
 
 
 
 
 
 
 
 
143
  public function display_view_in_content( $content = '' ) {
144
  remove_filter( 'the_content', array( $this, 'display_view_in_content' ), 5 );
145
  if ( $this->displayed ) {
@@ -148,6 +159,10 @@ class WPBDP__WordPress_Template_Integration {
148
 
149
  $html = wpbdp_current_view_output();
150
 
 
 
 
 
151
  $this->displayed = true;
152
 
153
  return $html;
@@ -301,6 +316,13 @@ class WPBDP__WordPress_Template_Integration {
301
  return $which_thumbnail !== 'theme';
302
  }
303
 
 
 
 
 
 
 
 
304
  public function _comments_template( $template ) {
305
  $is_single_listing = is_single() && get_post_type() == WPBDP_POST_TYPE;
306
  $is_main_page = get_post_type() == 'page' && get_the_ID() == wpbdp_get_page_id( 'main' );
43
 
44
  $allow_override = apply_filters( 'wpbdp_allow_template_override', true );
45
 
46
+ if ( $wp_query->is_tax() ) {
47
+ // Force some themes to use the page template.
48
+ $wp_query->is_singular = true;
49
+ }
50
+
51
  if ( $allow_override ) {
52
  add_action( 'loop_start', array( $this, 'setup_post_hooks' ) );
53
  $page_template = get_query_template( 'page', $this->get_template_alternatives() );
86
  $this->prep_tax_head();
87
  }
88
 
 
 
89
  // Run last so other hooks don't break our output.
90
+ add_filter( 'the_content', array( $this, 'display_view_in_content' ), 999 );
91
  remove_action( 'loop_start', array( $this, 'setup_post_hooks' ) );
92
  }
93
 
99
  public function prep_tax_head() {
100
  add_filter( 'the_title', array( &$this, 'set_tax_title' ) );
101
  add_filter( 'post_thumbnail_html', array( &$this, 'remove_tax_thumbnail' ) );
 
102
  }
103
 
104
  /**
110
  * @return string
111
  */
112
  public function set_tax_title( $title ) {
113
+ if ( $this->in_the_loop() ) {
114
+ // If this is not a category, don't change it.
115
  return $title;
116
  }
117
 
127
  * @return string
128
  */
129
  public function remove_tax_thumbnail( $thumbnail ) {
130
+ remove_filter( 'post_thumbnail_html', array( &$this, 'remove_tax_thumbnail' ) );
 
 
131
 
132
+ if ( $this->in_the_loop() ) {
133
+ return $thumbnail;
 
 
134
  }
135
 
136
  // The caption shows in 2021 theme.
139
  return '';
140
  }
141
 
142
+ /**
143
+ * Some themes run the taxonomy title in the loop too.
144
+ * Check our custom loop flag.
145
+ *
146
+ * @since 6.2.6
147
+ * @return bool
148
+ */
149
+ private function in_the_loop() {
150
+ global $wp_query;
151
+ return $wp_query->wpbdp_in_the_loop;
152
+ }
153
+
154
  public function display_view_in_content( $content = '' ) {
155
  remove_filter( 'the_content', array( $this, 'display_view_in_content' ), 5 );
156
  if ( $this->displayed ) {
159
 
160
  $html = wpbdp_current_view_output();
161
 
162
+ if ( is_tax() ) {
163
+ $this->end_query();
164
+ }
165
+
166
  $this->displayed = true;
167
 
168
  return $html;
316
  return $which_thumbnail !== 'theme';
317
  }
318
 
319
+ private function end_query() {
320
+ global $wp_query;
321
+
322
+ $wp_query->current_post = -1;
323
+ $wp_query->post_count = 0;
324
+ }
325
+
326
  public function _comments_template( $template ) {
327
  $is_single_listing = is_single() && get_post_type() == WPBDP_POST_TYPE;
328
  $is_main_page = get_post_type() == 'page' && get_the_ID() == wpbdp_get_page_id( 'main' );
includes/class-wpbdp.php CHANGED
@@ -28,7 +28,7 @@ final class WPBDP {
28
  }
29
 
30
  private function setup_constants() {
31
- define( 'WPBDP_VERSION', '6.2.5' );
32
 
33
  define( 'WPBDP_PATH', wp_normalize_path( plugin_dir_path( WPBDP_PLUGIN_FILE ) ) );
34
  define( 'WPBDP_INC', trailingslashit( WPBDP_PATH . 'includes' ) );
28
  }
29
 
30
  private function setup_constants() {
31
+ define( 'WPBDP_VERSION', '6.2.6' );
32
 
33
  define( 'WPBDP_PATH', wp_normalize_path( plugin_dir_path( WPBDP_PLUGIN_FILE ) ) );
34
  define( 'WPBDP_INC', trailingslashit( WPBDP_PATH . 'includes' ) );
includes/controllers/pages/class-show-category.php CHANGED
@@ -15,7 +15,8 @@ class WPBDP__Views__Show_Category extends WPBDP__View {
15
  $html = '';
16
 
17
  if ( is_object( $term ) ) {
18
- if ( WPBDP__Themes_Compat::is_block_theme() ) {
 
19
  global $wpbdp;
20
  $wpbdp->template_integration->prep_tax_head();
21
  }
15
  $html = '';
16
 
17
  if ( is_object( $term ) ) {
18
+ if ( is_callable( 'WPBDP__Themes_Compat::is_block_theme' ) && WPBDP__Themes_Compat::is_block_theme() ) {
19
+ // This isn't loaded when disable-cpt is on.
20
  global $wpbdp;
21
  $wpbdp->template_integration->prep_tax_head();
22
  }
languages/business-directory-plugin-ar.po CHANGED
@@ -5,7 +5,7 @@ msgstr ""
5
  "Project-Id-Version: Business Directory Plugin v5.7.3\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/business-"
7
  "directory-plugin\n"
8
- "POT-Creation-Date: 2022-07-19 20:42:47+00:00\n"
9
  "PO-Revision-Date: 2017-01-16 17:47-0500\n"
10
  "Last-Translator: BD Team <support@businessdirectoryplugin.com>\n"
11
  "Language-Team: BD Team <support@businessdirectoryplugin.com>\n"
@@ -3120,7 +3120,7 @@ msgstr ""
3120
 
3121
  #: templates/businessdirectory-listings.tpl.php:51
3122
  #: templates/deprecated/search.tpl.php:23
3123
- #: templates/parts/listings-loop.tpl.php:19 templates/search.tpl.php:30
3124
  #, fuzzy
3125
  msgid "No listings found."
3126
  msgstr "لم يتم العثور على أي إعلانات."
5
  "Project-Id-Version: Business Directory Plugin v5.7.3\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/business-"
7
  "directory-plugin\n"
8
+ "POT-Creation-Date: 2022-07-22 20:06:26+00:00\n"
9
  "PO-Revision-Date: 2017-01-16 17:47-0500\n"
10
  "Last-Translator: BD Team <support@businessdirectoryplugin.com>\n"
11
  "Language-Team: BD Team <support@businessdirectoryplugin.com>\n"
3120
 
3121
  #: templates/businessdirectory-listings.tpl.php:51
3122
  #: templates/deprecated/search.tpl.php:23
3123
+ #: templates/parts/listings-loop.tpl.php:25 templates/search.tpl.php:30
3124
  #, fuzzy
3125
  msgid "No listings found."
3126
  msgstr "لم يتم العثور على أي إعلانات."
languages/business-directory-plugin-de_DE.po CHANGED
@@ -5,7 +5,7 @@ msgstr ""
5
  "Project-Id-Version: Business Directory Plugin v5.7.3\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/business-"
7
  "directory-plugin\n"
8
- "POT-Creation-Date: 2022-07-19 20:42:47+00:00\n"
9
  "PO-Revision-Date: 2020-06-17 15:32-0500\n"
10
  "Last-Translator: Axel J. Metayer <axel@kfz.net>\n"
11
  "Language-Team: Business Directory Plugin <support@businessdirectoryplugin."
@@ -3119,7 +3119,7 @@ msgstr ""
3119
 
3120
  #: templates/businessdirectory-listings.tpl.php:51
3121
  #: templates/deprecated/search.tpl.php:23
3122
- #: templates/parts/listings-loop.tpl.php:19 templates/search.tpl.php:30
3123
  #, fuzzy
3124
  msgid "No listings found."
3125
  msgstr "Kein Eintrag vorhanden."
5
  "Project-Id-Version: Business Directory Plugin v5.7.3\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/business-"
7
  "directory-plugin\n"
8
+ "POT-Creation-Date: 2022-07-22 20:06:26+00:00\n"
9
  "PO-Revision-Date: 2020-06-17 15:32-0500\n"
10
  "Last-Translator: Axel J. Metayer <axel@kfz.net>\n"
11
  "Language-Team: Business Directory Plugin <support@businessdirectoryplugin."
3119
 
3120
  #: templates/businessdirectory-listings.tpl.php:51
3121
  #: templates/deprecated/search.tpl.php:23
3122
+ #: templates/parts/listings-loop.tpl.php:25 templates/search.tpl.php:30
3123
  #, fuzzy
3124
  msgid "No listings found."
3125
  msgstr "Kein Eintrag vorhanden."
languages/business-directory-plugin-en_US.po CHANGED
@@ -5,7 +5,7 @@ msgstr ""
5
  "Project-Id-Version: Business Directory Plugin v5.7.3\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/business-"
7
  "directory-plugin\n"
8
- "POT-Creation-Date: 2022-07-19 20:42:47+00:00\n"
9
  "PO-Revision-Date: 2020-06-17 15:32-0500\n"
10
  "Last-Translator: BD Team <support@businessdirectoryplugin.com>\n"
11
  "Language-Team: BD Team <support@businessdirectoryplugin.com>\n"
@@ -2637,7 +2637,7 @@ msgstr ""
2637
 
2638
  #: templates/businessdirectory-listings.tpl.php:51
2639
  #: templates/deprecated/search.tpl.php:23
2640
- #: templates/parts/listings-loop.tpl.php:19 templates/search.tpl.php:30
2641
  msgid "No listings found."
2642
  msgstr ""
2643
 
5
  "Project-Id-Version: Business Directory Plugin v5.7.3\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/business-"
7
  "directory-plugin\n"
8
+ "POT-Creation-Date: 2022-07-22 20:06:26+00:00\n"
9
  "PO-Revision-Date: 2020-06-17 15:32-0500\n"
10
  "Last-Translator: BD Team <support@businessdirectoryplugin.com>\n"
11
  "Language-Team: BD Team <support@businessdirectoryplugin.com>\n"
2637
 
2638
  #: templates/businessdirectory-listings.tpl.php:51
2639
  #: templates/deprecated/search.tpl.php:23
2640
+ #: templates/parts/listings-loop.tpl.php:25 templates/search.tpl.php:30
2641
  msgid "No listings found."
2642
  msgstr ""
2643
 
languages/business-directory-plugin-fr_FR.po CHANGED
@@ -5,7 +5,7 @@ msgstr ""
5
  "Project-Id-Version: Business Directory Plugin v5.7.3\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/business-"
7
  "directory-plugin\n"
8
- "POT-Creation-Date: 2022-07-19 20:42:47+00:00\n"
9
  "PO-Revision-Date: 2020-06-17 15:32-0500\n"
10
  "Last-Translator: Laurent Provin <lprovin@yahoo.fr>\n"
11
  "Language-Team: BD Team <support@businessdirectoryplugin.com>\n"
@@ -2876,7 +2876,7 @@ msgstr "Obtenir les informations de debogage"
2876
 
2877
  #: templates/businessdirectory-listings.tpl.php:51
2878
  #: templates/deprecated/search.tpl.php:23
2879
- #: templates/parts/listings-loop.tpl.php:19 templates/search.tpl.php:30
2880
  msgid "No listings found."
2881
  msgstr "Aucune annonce trouvée."
2882
 
5
  "Project-Id-Version: Business Directory Plugin v5.7.3\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/business-"
7
  "directory-plugin\n"
8
+ "POT-Creation-Date: 2022-07-22 20:06:26+00:00\n"
9
  "PO-Revision-Date: 2020-06-17 15:32-0500\n"
10
  "Last-Translator: Laurent Provin <lprovin@yahoo.fr>\n"
11
  "Language-Team: BD Team <support@businessdirectoryplugin.com>\n"
2876
 
2877
  #: templates/businessdirectory-listings.tpl.php:51
2878
  #: templates/deprecated/search.tpl.php:23
2879
+ #: templates/parts/listings-loop.tpl.php:25 templates/search.tpl.php:30
2880
  msgid "No listings found."
2881
  msgstr "Aucune annonce trouvée."
2882
 
languages/business-directory-plugin-it_IT.po CHANGED
@@ -3,7 +3,7 @@ msgstr ""
3
  "Project-Id-Version: Business Directory Plugin v5.7.3\n"
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/business-"
5
  "directory-plugin\n"
6
- "POT-Creation-Date: 2022-07-19 20:42:47+00:00\n"
7
  "PO-Revision-Date: 2020-06-17 15:33-0500\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
@@ -3233,7 +3233,7 @@ msgstr ""
3233
 
3234
  #: templates/businessdirectory-listings.tpl.php:51
3235
  #: templates/deprecated/search.tpl.php:23
3236
- #: templates/parts/listings-loop.tpl.php:19 templates/search.tpl.php:30
3237
  #, fuzzy
3238
  msgid "No listings found."
3239
  msgstr "Nessun annuncio trovato."
3
  "Project-Id-Version: Business Directory Plugin v5.7.3\n"
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/business-"
5
  "directory-plugin\n"
6
+ "POT-Creation-Date: 2022-07-22 20:06:26+00:00\n"
7
  "PO-Revision-Date: 2020-06-17 15:33-0500\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
3233
 
3234
  #: templates/businessdirectory-listings.tpl.php:51
3235
  #: templates/deprecated/search.tpl.php:23
3236
+ #: templates/parts/listings-loop.tpl.php:25 templates/search.tpl.php:30
3237
  #, fuzzy
3238
  msgid "No listings found."
3239
  msgstr "Nessun annuncio trovato."
languages/business-directory-plugin-nl_NL.po CHANGED
@@ -3,7 +3,7 @@ msgstr ""
3
  "Project-Id-Version: Business Directory Plugin v5.7.3\n"
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/business-"
5
  "directory-plugin\n"
6
- "POT-Creation-Date: 2022-07-19 20:42:47+00:00\n"
7
  "PO-Revision-Date: 2020-06-17 15:33-0500\n"
8
  "Last-Translator: admin <info@nederlofcentrum.nl>\n"
9
  "Language-Team: Dutch\n"
@@ -2933,7 +2933,7 @@ msgstr ""
2933
 
2934
  #: templates/businessdirectory-listings.tpl.php:51
2935
  #: templates/deprecated/search.tpl.php:23
2936
- #: templates/parts/listings-loop.tpl.php:19 templates/search.tpl.php:30
2937
  #, fuzzy
2938
  msgid "No listings found."
2939
  msgstr "Geen registraties gevonden."
3
  "Project-Id-Version: Business Directory Plugin v5.7.3\n"
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/business-"
5
  "directory-plugin\n"
6
+ "POT-Creation-Date: 2022-07-22 20:06:26+00:00\n"
7
  "PO-Revision-Date: 2020-06-17 15:33-0500\n"
8
  "Last-Translator: admin <info@nederlofcentrum.nl>\n"
9
  "Language-Team: Dutch\n"
2933
 
2934
  #: templates/businessdirectory-listings.tpl.php:51
2935
  #: templates/deprecated/search.tpl.php:23
2936
+ #: templates/parts/listings-loop.tpl.php:25 templates/search.tpl.php:30
2937
  #, fuzzy
2938
  msgid "No listings found."
2939
  msgstr "Geen registraties gevonden."
languages/business-directory-plugin-pl_PL.po CHANGED
@@ -3,7 +3,7 @@ msgstr ""
3
  "Project-Id-Version: Business Directory Plugin v5.7.3\n"
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/business-"
5
  "directory-plugin\n"
6
- "POT-Creation-Date: 2022-07-19 20:42:47+00:00\n"
7
  "PO-Revision-Date: 2020-06-17 15:33-0500\n"
8
  "Last-Translator: HomeSupport <admin@homesupport.pl>\n"
9
  "Language-Team: HomeSupport\n"
@@ -3486,7 +3486,7 @@ msgstr ""
3486
  # @ WPBDM
3487
  #: templates/businessdirectory-listings.tpl.php:51
3488
  #: templates/deprecated/search.tpl.php:23
3489
- #: templates/parts/listings-loop.tpl.php:19 templates/search.tpl.php:30
3490
  #, fuzzy
3491
  msgid "No listings found."
3492
  msgstr "Nie znaleziono Firm"
3
  "Project-Id-Version: Business Directory Plugin v5.7.3\n"
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/business-"
5
  "directory-plugin\n"
6
+ "POT-Creation-Date: 2022-07-22 20:06:26+00:00\n"
7
  "PO-Revision-Date: 2020-06-17 15:33-0500\n"
8
  "Last-Translator: HomeSupport <admin@homesupport.pl>\n"
9
  "Language-Team: HomeSupport\n"
3486
  # @ WPBDM
3487
  #: templates/businessdirectory-listings.tpl.php:51
3488
  #: templates/deprecated/search.tpl.php:23
3489
+ #: templates/parts/listings-loop.tpl.php:25 templates/search.tpl.php:30
3490
  #, fuzzy
3491
  msgid "No listings found."
3492
  msgstr "Nie znaleziono Firm"
languages/business-directory-plugin-ru_RU.po CHANGED
@@ -3,7 +3,7 @@ msgstr ""
3
  "Project-Id-Version: Business Directory Plugin v5.7.3\n"
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/business-"
5
  "directory-plugin\n"
6
- "POT-Creation-Date: 2022-07-19 20:42:47+00:00\n"
7
  "PO-Revision-Date: 2020-06-17 15:33-0500\n"
8
  "Last-Translator: Mick Levin <mikhaillevin@hotmail.com>\n"
9
  "Language-Team: BD Team <support@businessdirectoryplugin.com>\n"
@@ -3106,7 +3106,7 @@ msgstr ""
3106
 
3107
  #: templates/businessdirectory-listings.tpl.php:51
3108
  #: templates/deprecated/search.tpl.php:23
3109
- #: templates/parts/listings-loop.tpl.php:19 templates/search.tpl.php:30
3110
  #, fuzzy
3111
  msgid "No listings found."
3112
  msgstr "Записи не найдены."
3
  "Project-Id-Version: Business Directory Plugin v5.7.3\n"
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/business-"
5
  "directory-plugin\n"
6
+ "POT-Creation-Date: 2022-07-22 20:06:26+00:00\n"
7
  "PO-Revision-Date: 2020-06-17 15:33-0500\n"
8
  "Last-Translator: Mick Levin <mikhaillevin@hotmail.com>\n"
9
  "Language-Team: BD Team <support@businessdirectoryplugin.com>\n"
3106
 
3107
  #: templates/businessdirectory-listings.tpl.php:51
3108
  #: templates/deprecated/search.tpl.php:23
3109
+ #: templates/parts/listings-loop.tpl.php:25 templates/search.tpl.php:30
3110
  #, fuzzy
3111
  msgid "No listings found."
3112
  msgstr "Записи не найдены."
languages/business-directory-plugin-sv_SE.po CHANGED
@@ -5,7 +5,7 @@ msgstr ""
5
  "Project-Id-Version: Business Directory Plugin v5.7.3\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/business-"
7
  "directory-plugin\n"
8
- "POT-Creation-Date: 2022-07-19 20:42:47+00:00\n"
9
  "PO-Revision-Date: 2020-06-17 15:33-0500\n"
10
  "Last-Translator: \n"
11
  "Language-Team: \n"
@@ -3166,7 +3166,7 @@ msgstr ""
3166
 
3167
  #: templates/businessdirectory-listings.tpl.php:51
3168
  #: templates/deprecated/search.tpl.php:23
3169
- #: templates/parts/listings-loop.tpl.php:19 templates/search.tpl.php:30
3170
  #, fuzzy
3171
  msgid "No listings found."
3172
  msgstr "Inga annonser hittades"
5
  "Project-Id-Version: Business Directory Plugin v5.7.3\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/business-"
7
  "directory-plugin\n"
8
+ "POT-Creation-Date: 2022-07-22 20:06:26+00:00\n"
9
  "PO-Revision-Date: 2020-06-17 15:33-0500\n"
10
  "Last-Translator: \n"
11
  "Language-Team: \n"
3166
 
3167
  #: templates/businessdirectory-listings.tpl.php:51
3168
  #: templates/deprecated/search.tpl.php:23
3169
+ #: templates/parts/listings-loop.tpl.php:25 templates/search.tpl.php:30
3170
  #, fuzzy
3171
  msgid "No listings found."
3172
  msgstr "Inga annonser hittades"
languages/business-directory-plugin.pot CHANGED
@@ -2,10 +2,10 @@
2
  # This file is distributed under the GPLv2 or any later version.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Business Directory Plugin 6.2.5\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/business-directory-plugin\n"
8
- "POT-Creation-Date: 2022-07-19 21:06:48+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
@@ -2633,7 +2633,7 @@ msgstr ""
2633
 
2634
  #: templates/businessdirectory-listings.tpl.php:51
2635
  #: templates/deprecated/search.tpl.php:23
2636
- #: templates/parts/listings-loop.tpl.php:19 templates/search.tpl.php:30
2637
  msgid "No listings found."
2638
  msgstr ""
2639
 
2
  # This file is distributed under the GPLv2 or any later version.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Business Directory Plugin 6.2.6\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/business-directory-plugin\n"
8
+ "POT-Creation-Date: 2022-07-22 20:06:26+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
2633
 
2634
  #: templates/businessdirectory-listings.tpl.php:51
2635
  #: templates/deprecated/search.tpl.php:23
2636
+ #: templates/parts/listings-loop.tpl.php:25 templates/search.tpl.php:30
2637
  msgid "No listings found."
2638
  msgstr ""
2639
 
templates/parts/listings-loop.tpl.php CHANGED
@@ -1,11 +1,17 @@
1
  <?php
2
  if ( $query->have_posts() ) :
 
 
 
3
  /** @phpstan-ignore-next-line */
4
  while ( $query->have_posts() ) {
5
  $query->the_post();
6
  wpbdp_render_listing( null, 'excerpt', 'echo' );
7
  }
8
 
 
 
 
9
  /** @phpstan-ignore-next-line */
10
  wpbdp_x_part(
11
  'parts/pagination',
1
  <?php
2
  if ( $query->have_posts() ) :
3
+ global $wp_query;
4
+ $wp_query->wpbdp_in_the_loop = true;
5
+
6
  /** @phpstan-ignore-next-line */
7
  while ( $query->have_posts() ) {
8
  $query->the_post();
9
  wpbdp_render_listing( null, 'excerpt', 'echo' );
10
  }
11
 
12
+ /** @phpstan-ignore-next-line */
13
+ $wp_query->wpbdp_in_the_loop = false;
14
+
15
  /** @phpstan-ignore-next-line */
16
  wpbdp_x_part(
17
  'parts/pagination',
themes/default/theme.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "name": "Default Theme",
3
  "description": "A clean, basic look. This theme is always installed and cannot be removed.",
4
- "version": "6.2.5",
5
  "author": "Business Directory Team",
6
  "author_email": "support@businessdirectoryplugin.com",
7
  "author_url": "https://businessdirectoryplugin.com",
1
  {
2
  "name": "Default Theme",
3
  "description": "A clean, basic look. This theme is always installed and cannot be removed.",
4
+ "version": "6.2.6",
5
  "author": "Business Directory Team",
6
  "author_email": "support@businessdirectoryplugin.com",
7
  "author_url": "https://businessdirectoryplugin.com",