From d50b60c281934185035d3f3e9b75bde7acef9823 Mon Sep 17 00:00:00 2001 From: Lucas Bonomo Date: Sat, 1 Feb 2025 19:33:13 -0300 Subject: [PATCH 1/3] Fixing strlen() error --- classes/PodsUI.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/PodsUI.php b/classes/PodsUI.php index c9188920d7..19746eaada 100644 --- a/classes/PodsUI.php +++ b/classes/PodsUI.php @@ -3000,7 +3000,7 @@ public function manage( $reorder = false ) { echo PodsForm::submit_button( $this->header['search'], 'button', false, false, array( 'id' => $this->num_prefix . 'search' . $this->num . '-submit' ) ); - if ( 0 < strlen( $this->search ) ) { + if ( NULL === $this->search ) { $clear_filters = array( $this->num_prefix . 'search' . $this->num => false, ); From edf7b55d4e524cf3e88dfc8ac2c3079d3cbb211b Mon Sep 17 00:00:00 2001 From: sc0ttkclark Date: Fri, 7 Feb 2025 23:08:27 +0000 Subject: [PATCH 2/3] Set version to 3.2.9-a-1 --- init.php | 4 ++-- package.json | 2 +- readme.txt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/init.php b/init.php index 911ef652e7..2c634682e8 100644 --- a/init.php +++ b/init.php @@ -10,7 +10,7 @@ * Plugin Name: Pods - Custom Content Types and Fields * Plugin URI: https://pods.io/ * Description: Pods is a framework for creating, managing, and deploying customized content types and fields - * Version: 3.2.8.2 + * Version: 3.2.9-a-1 * Author: Pods Framework Team * Author URI: https://pods.io/about/ * Text Domain: pods @@ -43,7 +43,7 @@ add_action( 'init', 'pods_deactivate_pods_ui' ); } else { // Current version. - define( 'PODS_VERSION', '3.2.8.2' ); + define( 'PODS_VERSION', '3.2.9-a-1' ); // Current database version, this is the last version the database changed. define( 'PODS_DB_VERSION', '2.3.5' ); diff --git a/package.json b/package.json index 3958765e6f..8a76264cb3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pods", - "version": "3.2.8.2", + "version": "3.2.9-a-1", "description": "Pods is a development framework for creating, extending, managing, and deploying customized content types in WordPress.", "author": "Pods Foundation, Inc", "homepage": "https://pods.io/", diff --git a/readme.txt b/readme.txt index 4ca0840fbc..b186260f49 100644 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Tags: pods, custom post types, custom taxonomies, content types, custom fields Requires at least: 6.0 Tested up to: 6.7 Requires PHP: 7.2 -Stable tag: 3.2.8.2 +Stable tag: 3.2.9-a-1 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html From c17053de98f5b751ada691496b1e2c232b42be92 Mon Sep 17 00:00:00 2001 From: Scott Kingsley Clark Date: Fri, 7 Feb 2025 17:17:56 -0600 Subject: [PATCH 3/3] Fix logic to match before and cast instead Signed-off-by: Scott Kingsley Clark --- classes/PodsUI.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/PodsUI.php b/classes/PodsUI.php index 19746eaada..4cec000aff 100644 --- a/classes/PodsUI.php +++ b/classes/PodsUI.php @@ -3000,7 +3000,7 @@ public function manage( $reorder = false ) { echo PodsForm::submit_button( $this->header['search'], 'button', false, false, array( 'id' => $this->num_prefix . 'search' . $this->num . '-submit' ) ); - if ( NULL === $this->search ) { + if ( 0 < strlen( (string) $this->search ) ) { $clear_filters = array( $this->num_prefix . 'search' . $this->num => false, );