Business Directory Plugin - Version 6.2.3

Version Description

Download this release

Release Info

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

Code changes from version 6.2.2 to 6.2.3

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.2
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.2 =
162
  * New: Show "draft" status on the manage listings page.
163
  * New: Apply grids to manage listings page so it matches the main list.
4
  Requires at least: 4.8
5
  Requires PHP: 5.6
6
  Tested up to: 6.0
7
+ Stable tag: 6.2.3
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.3 =
162
+ * Fix: Category pages on non-block themes were using the category in the wrong places.
163
+ * Fix: The French translation has some issues that were causing errors.
164
+
165
  = 6.2.2 =
166
  * New: Show "draft" status on the manage listings page.
167
  * New: Apply grids to manage listings page so it matches the main list.
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.2
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.3
7
  * Author: Business Directory Team
8
  * Author URI: https://businessdirectoryplugin.com
9
  * Text Domain: business-directory-plugin
includes/class-wordpress-template-integration.php CHANGED
@@ -77,6 +77,11 @@ class WPBDP__WordPress_Template_Integration {
77
  return;
78
  }
79
 
 
 
 
 
 
80
  remove_filter( 'the_content', 'wpautop' );
81
 
82
  // Run last so other hooks don't break our output.
@@ -84,6 +89,31 @@ class WPBDP__WordPress_Template_Integration {
84
  remove_action( 'loop_start', array( $this, 'setup_post_hooks' ) );
85
  }
86
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
87
  public function display_view_in_content( $content = '' ) {
88
  remove_filter( 'the_content', array( $this, 'display_view_in_content' ), 5 );
89
  if ( $this->displayed ) {
77
  return;
78
  }
79
 
80
+ if ( $query->is_tax() ) {
81
+ add_filter( 'the_title', array( &$this, 'set_tax_title' ) );
82
+ add_filter( 'post_thumbnail_html', array( &$this, 'remove_tax_thumbnail' ) );
83
+ }
84
+
85
  remove_filter( 'the_content', 'wpautop' );
86
 
87
  // Run last so other hooks don't break our output.
89
  remove_action( 'loop_start', array( $this, 'setup_post_hooks' ) );
90
  }
91
 
92
+ /**
93
+ * Since the category page thinks it's a normal post, override the global post.
94
+ * This would be better to change the category output, rather than using a "page".
95
+ * See WPBDP__Dispatcher.
96
+ *
97
+ * @since 6.2.3
98
+ * @return string
99
+ */
100
+ public function set_tax_title( $title ) {
101
+ remove_filter( 'the_title', array( &$this, 'set_tax_title' ) );
102
+ $term = get_queried_object();
103
+ return is_object( $term ) ? $term->name : $title;
104
+ }
105
+
106
+ /**
107
+ * Prevent a post thumbnail from showing on the page before the loop.
108
+ *
109
+ * @since 6.2.3
110
+ * @return string
111
+ */
112
+ public function remove_tax_thumbnail( $thumbnail ) {
113
+ remove_filter( 'post_thumbnail_html', array( &$this, 'remove_tax_thumbnail' ) );
114
+ return '';
115
+ }
116
+
117
  public function display_view_in_content( $content = '' ) {
118
  remove_filter( 'the_content', array( $this, 'display_view_in_content' ), 5 );
119
  if ( $this->displayed ) {
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.2' );
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.3' );
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,12 +15,7 @@ class WPBDP__Views__Show_Category extends WPBDP__View {
15
  $html = '';
16
 
17
  if ( is_object( $term ) ) {
18
-
19
- add_filter( 'the_title', array( &$this, 'set_tax_title' ) );
20
- add_filter( 'post_thumbnail_html', array( &$this, 'remove_tax_thumbnail' ) );
21
-
22
  $html = $this->get_taxonomy_html( $term );
23
-
24
  }
25
 
26
  wpbdp_pop_query();
@@ -51,37 +46,4 @@ class WPBDP__Views__Show_Category extends WPBDP__View {
51
  $searching ? '' : 'page'
52
  );
53
  }
54
-
55
- /**
56
- * Since the category page thinks it's a normal post, override the global post.
57
- * This would be better to change the category output, rather than using a "page".
58
- * See WPBDP__Dispatcher.
59
- *
60
- * @since 6.2.2
61
- * @return string
62
- */
63
- public function set_tax_title( $title ) {
64
- if ( in_the_loop() ) {
65
- return $title;
66
- }
67
-
68
- $term = get_queried_object();
69
- return is_object( $term ) ? $term->name : '';
70
- }
71
-
72
- /**
73
- * Prevent a post thumbnail from showing on the page before the loop.
74
- *
75
- * @since 6.2.2
76
- * @return string
77
- */
78
- public function remove_tax_thumbnail( $thumbnail ) {
79
- if ( in_the_loop() ) {
80
- remove_filter( 'post_thumbnail_html', array( &$this, 'remove_tax_thumbnail' ) );
81
-
82
- return $thumbnail;
83
- }
84
-
85
- return '';
86
- }
87
  }
15
  $html = '';
16
 
17
  if ( is_object( $term ) ) {
 
 
 
 
18
  $html = $this->get_taxonomy_html( $term );
 
19
  }
20
 
21
  wpbdp_pop_query();
46
  $searching ? '' : 'page'
47
  );
48
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
  }
languages/business-directory-plugin-fr_FR.mo CHANGED
Binary file
languages/business-directory-plugin-fr_FR.po CHANGED
@@ -101,7 +101,7 @@ msgstr "Non, merci"
101
  #: includes/admin/class-admin.php:244
102
  msgid "You're all set. Visit your new %1$sBusiness Directory%2$s page."
103
  msgstr ""
104
- "Vous êtes prêt à visiter votre nouvelle page <a>Annuaire Professionnel</a>."
105
 
106
  #: includes/admin/class-admin.php:272
107
  msgid "Invalid email address."
@@ -164,7 +164,7 @@ msgid ""
164
  msgstr ""
165
  "Nous avons remarqué que vous vouliez que les utilisateurs du plugins "
166
  "s'enregistrent avant de poster des annonces, mais l'enregistrement pour "
167
- "votre site est actuellement désactivé. Allez [ici] et activez \"Tout le "
168
  "monde peut s'enregistrer\" pour être sûr que le plugin fonctionne "
169
  "correctement."
170
 
@@ -631,7 +631,7 @@ msgstr "Abonnement gratuit"
631
 
632
  #: includes/admin/helpers/tables/class-fees-table.php:227
633
  msgid "%1$s for %2$s"
634
- msgstr "%s (ex. %s)"
635
 
636
  #: includes/admin/helpers/tables/class-fees-table.php:261
637
  msgid "Total revenue earned from listings"
@@ -1328,8 +1328,6 @@ msgid ""
1328
  "The directory features are disabled at this time because a <a>manual "
1329
  "upgrade</a> is pending."
1330
  msgstr ""
1331
- "Bonne nouvelle ! Le plugin Business Directory s'intègre désormais au plugin "
1332
- "officiel Font Awesome. %1$Installez Font Awesome maintenant%2$s."
1333
 
1334
  #: includes/class-wpbdp.php:627
1335
  msgid ""
@@ -1345,7 +1343,7 @@ msgid ""
1345
  "Awesome plugin. %1$sInstall Font Awesome now%2$s."
1346
  msgstr ""
1347
  "Bonnes nouvelles! Le plugin Business Directory s'intègre désormais au plugin "
1348
- "officiel Font Awesome. %1$Installez Font Awesome maintenant%2$s."
1349
 
1350
  #: includes/compatibility/class-fa-compat.php:93
1351
  msgid ""
@@ -1353,7 +1351,7 @@ msgid ""
1353
  "%1$sInstall Font Awesome now%2$s"
1354
  msgstr ""
1355
  "Saviez-vous que vous pouvez utiliser des icônes dans les listes de "
1356
- "répertoires et les champs personnalisés ? %1$Installer Font Awesome non%2$s"
1357
 
1358
  #: includes/compatibility/class-navxt-integration.php:208
1359
  #: includes/widgets/widget-search.php:127
@@ -1671,7 +1669,7 @@ msgstr "Texte à afficher pour le champ social"
1671
  msgid ""
1672
  "Warning: Users can use this feature to get around your image limits in plans."
1673
  msgstr ""
1674
- "<b>Attention:</b> Les utilisateurs peuvent utiliser cette fonctionnalité "
1675
  "pour contourner les limitation d'images dans les formules payantes."
1676
 
1677
  #: includes/fields/class-fieldtypes-textarea.php:215
@@ -2790,7 +2788,7 @@ msgid ""
2790
  "are %1$savailable for purchase%2$s."
2791
  msgstr ""
2792
  "Les %1$s Thèmes de l'annuaire %2$s sont des modèles prédéfinis pour le "
2793
- "Plugin <i>Business Directory</i> afin de changer l'apparence de l'annuaire "
2794
  "rapidement et facilement. Nous avons un certain nombre d'entre eux "
2795
  "disponibles à l'achat %1$s ici %2$s."
2796
 
@@ -4513,7 +4511,7 @@ msgid ""
4513
  "IMPORTANT: subpages of the main directory page cannot be accesed while this "
4514
  "setting is checked."
4515
  msgstr ""
4516
- "<strong> IMPORTANT :</strong> les sous-pages de la page principale de "
4517
  "l'annuaire ne sont pas accessibles lorsque ce paramètre est coché."
4518
 
4519
  #: includes/admin/settings/class-settings-bootstrap.php:315
@@ -7348,7 +7346,7 @@ msgstr ""
7348
  "Vous avez \"Caché les catégories vides\" et certaines catégories qui ne "
7349
  "possèdent pas d'annonces. Cela signifie qu'elles ne seront pas visibles au "
7350
  "utilisateurs, sur votre site. Si cela ne correspond pas à votre souhait, "
7351
- "cliquez </a> ici <a> pour modifier le paramétrage."
7352
 
7353
  #: includes/controllers/pages/class-submit-listing.php:495
7354
  msgctxt "templates"
@@ -7914,7 +7912,7 @@ msgstr "Tout sélectionner"
7914
  #: includes/fields/class-fieldtypes-image.php:41
7915
  msgctxt "date field"
7916
  msgid "Caption for %s is required."
7917
- msgstr "Le pays est requis."
7918
 
7919
  #: includes/fields/class-fieldtypes-image.php:110
7920
  #: includes/fields/class-fieldtypes-social.php:173
@@ -7974,7 +7972,7 @@ msgstr ""
7974
  #: includes/fields/class-form-field.php:700
7975
  msgctxt "form-fields-api"
7976
  msgid "\"%s\" is an invalid field type for this association."
7977
- msgstr "\" est un type de champ invalide pour cette association."
7978
 
7979
  #: includes/fields/class-form-field.php:745
7980
  msgctxt "form-fields-api"
@@ -8336,7 +8334,7 @@ msgstr "%s. annonces importées."
8336
  #: includes/payment.php:57
8337
  msgctxt "payments"
8338
  msgid "Payment #%s"
8339
- msgstr "Paiement #%d"
8340
 
8341
  #: includes/utils.php:277
8342
  msgctxt "utils"
101
  #: includes/admin/class-admin.php:244
102
  msgid "You're all set. Visit your new %1$sBusiness Directory%2$s page."
103
  msgstr ""
104
+ "Vous êtes prêt à visiter votre nouvelle page %1$sAnnuaire Professionnel%2$s."
105
 
106
  #: includes/admin/class-admin.php:272
107
  msgid "Invalid email address."
164
  msgstr ""
165
  "Nous avons remarqué que vous vouliez que les utilisateurs du plugins "
166
  "s'enregistrent avant de poster des annonces, mais l'enregistrement pour "
167
+ "votre site est actuellement désactivé. Allez %1$sici%2$s et activez \"Tout le "
168
  "monde peut s'enregistrer\" pour être sûr que le plugin fonctionne "
169
  "correctement."
170
 
631
 
632
  #: includes/admin/helpers/tables/class-fees-table.php:227
633
  msgid "%1$s for %2$s"
634
+ msgstr "%1$s (ex. %2$s)"
635
 
636
  #: includes/admin/helpers/tables/class-fees-table.php:261
637
  msgid "Total revenue earned from listings"
1328
  "The directory features are disabled at this time because a <a>manual "
1329
  "upgrade</a> is pending."
1330
  msgstr ""
 
 
1331
 
1332
  #: includes/class-wpbdp.php:627
1333
  msgid ""
1343
  "Awesome plugin. %1$sInstall Font Awesome now%2$s."
1344
  msgstr ""
1345
  "Bonnes nouvelles! Le plugin Business Directory s'intègre désormais au plugin "
1346
+ "officiel Font Awesome. %1$sInstallez Font Awesome maintenant%2$s."
1347
 
1348
  #: includes/compatibility/class-fa-compat.php:93
1349
  msgid ""
1351
  "%1$sInstall Font Awesome now%2$s"
1352
  msgstr ""
1353
  "Saviez-vous que vous pouvez utiliser des icônes dans les listes de "
1354
+ "répertoires et les champs personnalisés ? %1$sInstaller Font Awesome non%2$s"
1355
 
1356
  #: includes/compatibility/class-navxt-integration.php:208
1357
  #: includes/widgets/widget-search.php:127
1669
  msgid ""
1670
  "Warning: Users can use this feature to get around your image limits in plans."
1671
  msgstr ""
1672
+ "Attention: Les utilisateurs peuvent utiliser cette fonctionnalité "
1673
  "pour contourner les limitation d'images dans les formules payantes."
1674
 
1675
  #: includes/fields/class-fieldtypes-textarea.php:215
2788
  "are %1$savailable for purchase%2$s."
2789
  msgstr ""
2790
  "Les %1$s Thèmes de l'annuaire %2$s sont des modèles prédéfinis pour le "
2791
+ "Plugin Business Directory afin de changer l'apparence de l'annuaire "
2792
  "rapidement et facilement. Nous avons un certain nombre d'entre eux "
2793
  "disponibles à l'achat %1$s ici %2$s."
2794
 
4511
  "IMPORTANT: subpages of the main directory page cannot be accesed while this "
4512
  "setting is checked."
4513
  msgstr ""
4514
+ "IMPORTANT: les sous-pages de la page principale de "
4515
  "l'annuaire ne sont pas accessibles lorsque ce paramètre est coché."
4516
 
4517
  #: includes/admin/settings/class-settings-bootstrap.php:315
7346
  "Vous avez \"Caché les catégories vides\" et certaines catégories qui ne "
7347
  "possèdent pas d'annonces. Cela signifie qu'elles ne seront pas visibles au "
7348
  "utilisateurs, sur votre site. Si cela ne correspond pas à votre souhait, "
7349
+ "cliquez <a>ici</a> pour modifier le paramétrage."
7350
 
7351
  #: includes/controllers/pages/class-submit-listing.php:495
7352
  msgctxt "templates"
7912
  #: includes/fields/class-fieldtypes-image.php:41
7913
  msgctxt "date field"
7914
  msgid "Caption for %s is required."
7915
+ msgstr ""
7916
 
7917
  #: includes/fields/class-fieldtypes-image.php:110
7918
  #: includes/fields/class-fieldtypes-social.php:173
7972
  #: includes/fields/class-form-field.php:700
7973
  msgctxt "form-fields-api"
7974
  msgid "\"%s\" is an invalid field type for this association."
7975
+ msgstr "\"%s\" est un type de champ invalide pour cette association."
7976
 
7977
  #: includes/fields/class-form-field.php:745
7978
  msgctxt "form-fields-api"
8334
  #: includes/payment.php:57
8335
  msgctxt "payments"
8336
  msgid "Payment #%s"
8337
+ msgstr "Paiement #%s"
8338
 
8339
  #: includes/utils.php:277
8340
  msgctxt "utils"
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.2\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/business-directory-plugin\n"
8
- "POT-Creation-Date: 2022-06-06 22:22:45+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
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.3\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/business-directory-plugin\n"
8
+ "POT-Creation-Date: 2022-06-07 23:02:37+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
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.2",
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.3",
5
  "author": "Business Directory Team",
6
  "author_email": "support@businessdirectoryplugin.com",
7
  "author_url": "https://businessdirectoryplugin.com",