Skip to content

Commit

Permalink
Merge pull request #2635 from kprajapatii/master
Browse files Browse the repository at this point in the history
2.3.63
  • Loading branch information
kprajapatii committed Jul 16, 2024
2 parents 5614cf3 + 975e7b4 commit e3b257f
Show file tree
Hide file tree
Showing 9 changed files with 638 additions and 490 deletions.
4 changes: 2 additions & 2 deletions geodirectory.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Plugin Name: GeoDirectory
* Plugin URI: https://wpgeodirectory.com/
* Description: GeoDirectory - Business Directory Plugin for WordPress.
* Version: 2.3.62
* Version: 2.3.63
* Author: AyeCode - WP Business Directory Plugins
* Author URI: https://wpgeodirectory.com
* Text Domain: geodirectory
Expand All @@ -34,7 +34,7 @@ final class GeoDirectory {
*
* @var string
*/
public $version = '2.3.62';
public $version = '2.3.63';

/**
* GeoDirectory instance.
Expand Down
8 changes: 4 additions & 4 deletions includes/widgets/class-geodir-widget-dynamic-content.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function set_arguments() {
'desc' => __( 'This is the custom field key.', 'geodirectory' ),
'placeholder' => '',
'options' => $this->get_custom_field_keys(),
'default' => '',
'default' => 'post_title',
'desc_tip' => true,
'advanced' => false
),
Expand All @@ -62,7 +62,7 @@ public function set_arguments() {
'desc' => __( 'Select the custom field condition.', 'geodirectory' ),
'placeholder' => '',
'options' => $this->get_badge_conditions(),
'default' => 'is_equal',
'default' => 'is_not_equal',
'desc_tip' => true,
'advanced' => false,
'element_require' => '([%key%]!="logged_in" && [%key%]!="logged_out")'
Expand Down Expand Up @@ -305,10 +305,10 @@ public function output( $args = array(), $widget_args = array(), $content = '' )
} else {
switch ( $args['condition'] ) {
case 'is_equal':
$match_found = (bool) ( $search != '' && $match_value == $search );
$match_found = (bool) ( ( $search != '' || $search === '' ) && $match_value == $search );
break;
case 'is_not_equal':
$match_found = (bool) ( $search != '' && $match_value != $search );
$match_found = (bool) ( ( $search != '' || $search === '' ) && $match_value != $search );
break;
case 'is_greater_than':
$match_found = (bool) ( $search != '' && ( is_float( $search ) || is_numeric( $search ) ) && ( is_float( $match_value ) || is_numeric( $match_value ) ) && $match_value > $search );
Expand Down
Binary file modified languages/geodirectory-en_US.mo
Binary file not shown.
Loading

0 comments on commit e3b257f

Please sign in to comment.