Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions README.TXT
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: business directory, listings, directory plugin, staff directory, member di
Requires at least: 5.9
Requires PHP: 7.4
Tested up to: 7.0
Stable tag: 6.4.24
Stable tag: 6.4.25
License: GPLv2 or later

The easy Business Directory Plugin for WordPress. Build an easy team directory, member directory, staff directory, church directory, and more.
Expand Down Expand Up @@ -158,6 +158,12 @@ Yes it is. However, you cannot "network activate" the plugin (as this will share
This can be done under Plugins -> Add New as the Administrator user. Do not "network activate" as the "super admin".

== Changelog ==
= 6.4.25 =
* Fix: Sticky listings not sorting correctly when using plan order sort options
* Fix: Translated listings showing empty field values instead of falling back to the original listing
* Fix: WPML translation jobs not saving custom field values for translated listings
* Fix: Legacy template block metadata not recognized in some themes

= 6.4.24 =
* Fix: Issues in admin form field and fee reorder actions
* Fix: Issues downloading and installing theme updates
Expand Down Expand Up @@ -229,8 +235,3 @@ This can be done under Plugins -> Add New as the Administrator user. Do not "net

= 6.4.9 =
* New: Added Stripe payment gateway

= 6.4.8 =
* Fix: Issue with the redirect chain for the new login redirect feature

<a href="https://businessdirectoryplugin.com/plugins/business-directory/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion">See changelog for all versions</a>
2 changes: 1 addition & 1 deletion business-directory-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Business Directory Plugin
* Plugin URI: https://businessdirectoryplugin.com
* Description: Provides the ability to maintain a free or paid business directory on your WordPress powered site.
* Version: 6.4.24
* Version: 6.4.25
* Author: Business Directory Team
* Author URI: https://businessdirectoryplugin.com
* Text Domain: business-directory-plugin
Expand Down
4 changes: 2 additions & 2 deletions includes/class-query-integration.php
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ private function get_sticky_listing_ids( $query ) {
/**
* Get the SQL query for sticky listing ids.
*
* @since x.x
* @since 6.4.25
*
* @param string $order_by The orderby value from the current query.
* @param string $order The normalized order direction.
Expand Down Expand Up @@ -428,7 +428,7 @@ private function get_sticky_listing_ids_query( $order_by, $order ) {
/**
* Get the cache key for sticky listing ids.
*
* @since x.x
* @since 6.4.25
*
* @param string $order_by The orderby value from the current query.
* @param string $order The normalized order direction.
Expand Down
2 changes: 1 addition & 1 deletion includes/class-wpbdp.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function __construct() {
}

private function setup_constants() {
define( 'WPBDP_VERSION', '6.4.24' );
define( 'WPBDP_VERSION', '6.4.25' );

define( 'WPBDP_PATH', wp_normalize_path( plugin_dir_path( WPBDP_PLUGIN_FILE ) ) );
define( 'WPBDP_INC', trailingslashit( WPBDP_PATH . 'includes' ) );
Expand Down
24 changes: 12 additions & 12 deletions includes/compatibility/class-wpml-compat.php
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ public function search_lang_field() {
/**
* Fall back to the original listing's field value when the translated post has none.
*
* @since x.x
* @since 6.4.25
*
* @param mixed $value The field value (may be empty on translated posts).
* @param int $post_id The current listing post ID.
Expand Down Expand Up @@ -598,7 +598,7 @@ public function maybe_use_original_field_value( $value, $post_id, $field ) {
/**
* Fall back to the original listing's HTML value when a field type bypasses value filters.
*
* @since x.x
* @since 6.4.25
*
* @param string $value The field HTML value.
* @param int $post_id The current listing post ID.
Expand All @@ -624,7 +624,7 @@ public function maybe_use_original_field_html_value( $value, $post_id, $field, $
/**
* Get the original (source) listing ID for a translated post.
*
* @since x.x
* @since 6.4.25
*
* @param int $listing_id The translated listing post ID.
*
Expand Down Expand Up @@ -657,7 +657,7 @@ private function get_original_listing_id( $listing_id ) {
/**
* Fallback to find original listing using default language lookup.
*
* @since x.x
* @since 6.4.25
*
* @param int $listing_id The translated listing post ID.
*
Expand All @@ -682,7 +682,7 @@ private function get_original_listing_id_fallback( $listing_id ) {
/**
* Register BD custom field meta keys with WPML as translatable fields.
*
* @since x.x
* @since 6.4.25
*/
public function register_custom_fields_with_wpml() {
if ( ! is_admin() || ! current_user_can( 'manage_options' ) ) {
Expand Down Expand Up @@ -743,7 +743,7 @@ public function register_custom_fields_with_wpml() {
/**
* Translate field category restrictions to the active language.
*
* @since x.x
* @since 6.4.25
*
* @param mixed $categories The supported categories field setting.
*
Expand Down Expand Up @@ -776,7 +776,7 @@ private function translate_supported_categories( $categories ) {
/**
* Save translated BD field values from WPML jobs.
*
* @since x.x
* @since 6.4.25
*
* @param int $post_id The translated listing post ID.
* @param array $fields Job fields.
Expand Down Expand Up @@ -809,7 +809,7 @@ public function save_translated_field_values( $post_id, $fields, $job ) {
/**
* Get translated custom field values from a WPML job without relying on WPML's bracket-sensitive regex.
*
* @since x.x
* @since 6.4.25
*
* @param string $meta_key The custom field meta key.
* @param object $job WPML translation job.
Expand Down Expand Up @@ -847,7 +847,7 @@ private function get_translated_custom_field_values_from_job( $meta_key, $job )
/**
* Get a translated WPML job element value.
*
* @since x.x
* @since 6.4.25
*
* @param string $field_type The job field type.
* @param object $job WPML translation job.
Expand All @@ -870,7 +870,7 @@ private function get_job_element_translation( $field_type, $job ) {
/**
* Decode a WPML job value.
*
* @since x.x
* @since 6.4.25
*
* @param string $value The encoded value.
* @param string $format The value format.
Expand Down Expand Up @@ -898,7 +898,7 @@ private function decode_wpml_job_value( $value, $format ) {
/**
* Decode a WPML field path part.
*
* @since x.x
* @since 6.4.25
*
* @param string $path_part The encoded path part.
*
Expand All @@ -911,7 +911,7 @@ private function decode_wpml_job_path_part( $path_part ) {
/**
* Set a nested array value by path.
*
* @since x.x
* @since 6.4.25
*
* @param array $values The values array.
* @param array $path The path to set.
Expand Down
8 changes: 4 additions & 4 deletions includes/fields/class-fieldtypes-radiobutton.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class WPBDP_FieldTypes_RadioButton extends WPBDP_Form_Field_Type {
/**
* Meta radio inputs rejected during conversion.
*
* @since x.x
* @since 6.4.25
*
* @var array<int, bool>
*/
Expand All @@ -34,7 +34,7 @@ public function get_id() {
/**
* Convert submitted radio field input to a safe stored value.
*
* @since x.x
* @since 6.4.25
*
* @param WPBDP_Form_Field $field Field object.
* @param mixed $input Submitted value.
Expand Down Expand Up @@ -259,7 +259,7 @@ public function get_field_value( &$field, $post_id ) {
/**
* Return escaped HTML-safe output for radio field values.
*
* @since x.x
* @since 6.4.25
*
* @param WPBDP_Form_Field $field Field object.
* @param int|string $post_id Listing ID.
Expand Down Expand Up @@ -294,7 +294,7 @@ public function get_field_plain_value( &$field, $post_id ) {
/**
* Return configured radio options as stored string values.
*
* @since x.x
* @since 6.4.25
*
* @param WPBDP_Form_Field $field Field object.
*
Expand Down
4 changes: 2 additions & 2 deletions includes/themes.php
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ private function get_template_meta( $template_path ) {
/**
* Gets template metadata from the old `$__template__` declaration.
*
* @since x.x
* @since 6.4.25
*
* @param string $template_path Path to the template file.
*
Expand Down Expand Up @@ -723,7 +723,7 @@ private function get_legacy_template_meta( $template_path ) {
/**
* Extracts quoted values from old template metadata arrays.
*
* @since x.x
* @since 6.4.25
*
* @param string $values List of values from a legacy template metadata array.
*
Expand Down
6 changes: 3 additions & 3 deletions includes/utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ function wpbdp_get_current_domain( $www = true, $prefix = '' ) {
/**
* Build a Business Directory user agent for outbound HTTP requests.
*
* @since x.x
* @since 6.4.25
*
* @param string $product Product name.
* @param string|null $version Product version.
Expand Down Expand Up @@ -745,7 +745,7 @@ function wpbdp_http_user_agent( $product = 'Business Directory', $version = null
/**
* Check if a URL points to the Business Directory domain.
*
* @since x.x
* @since 6.4.25
*
* @param string $url The URL to check.
*
Expand All @@ -766,7 +766,7 @@ function wpbdp_is_business_directory_request_url( $url ) {
/**
* Add the Business Directory user agent to package downloads from our servers.
*
* @since x.x
* @since 6.4.25
*
* @param array $args HTTP request args.
* @param string $url Request URL.
Expand Down
18 changes: 9 additions & 9 deletions tests/wpunit/Fields/RadioButtonFieldTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class RadioButtonFieldTest extends WPUnitTestCase {
protected $tester;

/**
* @since x.x
* @since 6.4.25
*/
public function testRadioMetaFieldStoresValidSubmittedOption() {
$field = $this->create_radio_field();
Expand All @@ -35,7 +35,7 @@ public function testRadioMetaFieldStoresValidSubmittedOption() {
}

/**
* @since x.x
* @since 6.4.25
*/
public function testRadioMetaFieldStoresSubmittedOptionWithLessThanCharacter() {
$field = $this->create_radio_field_with_options( array( 'Price < 100', 'Price >= 100' ) );
Expand All @@ -53,7 +53,7 @@ public function testRadioMetaFieldStoresSubmittedOptionWithLessThanCharacter() {
}

/**
* @since x.x
* @since 6.4.25
*/
public function testRadioMetaFieldRejectsSubmittedOptionNotConfiguredOnField() {
$field = $this->create_radio_field();
Expand All @@ -70,7 +70,7 @@ public function testRadioMetaFieldRejectsSubmittedOptionNotConfiguredOnField() {
}

/**
* @since x.x
* @since 6.4.25
*/
public function testRadioMetaFieldPreservesStoredOptionWhenSubmittedOptionNotConfiguredOnField() {
$field = $this->create_radio_field();
Expand All @@ -93,7 +93,7 @@ public function testRadioMetaFieldPreservesStoredOptionWhenSubmittedOptionNotCon
}

/**
* @since x.x
* @since 6.4.25
*/
public function testRadioMetaFieldClearsStoredOptionWhenSubmittedEmpty() {
$field = $this->create_radio_field();
Expand All @@ -115,7 +115,7 @@ public function testRadioMetaFieldClearsStoredOptionWhenSubmittedEmpty() {
}

/**
* @since x.x
* @since 6.4.25
*/
public function testRadioMetaFieldEscapesLegacyStoredValueForHtmlDisplay() {
$field = $this->create_radio_field();
Expand All @@ -128,7 +128,7 @@ public function testRadioMetaFieldEscapesLegacyStoredValueForHtmlDisplay() {
}

/**
* @since x.x
* @since 6.4.25
*
* @return WPBDP_Form_Field
*/
Expand All @@ -137,7 +137,7 @@ private function create_radio_field() {
}

/**
* @since x.x
* @since 6.4.25
*
* @param string[] $options Radio field options.
*
Expand Down Expand Up @@ -166,7 +166,7 @@ private function create_radio_field_with_options( $options ) {
}

/**
* @since x.x
* @since 6.4.25
*
* @return int
*/
Expand Down
14 changes: 7 additions & 7 deletions tests/wpunit/Listing/ListingQuerySortTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class ListingQuerySortTest extends WPUnitTestCase {
private $created_plan_ids = array();

/**
* @since x.x
* @since 6.4.25
*/
protected function after_setup() {
wpbdp_set_option(
Expand All @@ -46,7 +46,7 @@ protected function after_setup() {
}

/**
* @since x.x
* @since 6.4.25
*/
public function tearDown() : void {
foreach ( $this->created_listing_ids as $listing_id ) {
Expand All @@ -66,7 +66,7 @@ public function tearDown() : void {
}

/**
* @since x.x
* @since 6.4.25
*/
public function testStickyListingsUsePlanOrderTitleSort() {
$plan = $this->create_fee_plan( 'sticky_plan_order_title', 10 );
Expand All @@ -87,7 +87,7 @@ public function testStickyListingsUsePlanOrderTitleSort() {
}

/**
* @since x.x
* @since 6.4.25
*/
public function testStickyListingsUsePlanOrderDateSort() {
$plan = $this->create_fee_plan( 'sticky_plan_order_date', 10 );
Expand All @@ -103,7 +103,7 @@ public function testStickyListingsUsePlanOrderDateSort() {
}

/**
* @since x.x
* @since 6.4.25
*
* @param string $tag Fee plan tag.
* @param int $weight Fee plan weight.
Expand Down Expand Up @@ -139,7 +139,7 @@ private function create_fee_plan( $tag, $weight ) {
}

/**
* @since x.x
* @since 6.4.25
*
* @param string $title Post title.
* @param WPBDP__Fee_Plan $plan Fee plan.
Expand Down Expand Up @@ -167,7 +167,7 @@ private function create_listing_on_plan( $title, $plan, $date ) {
}

/**
* @since x.x
* @since 6.4.25
*
* @param string $order_by Order by value.
* @param string $order Order direction.
Expand Down
Loading
Loading