From 44563658be66c1dacf8b19c75dd9d6e686b5671c Mon Sep 17 00:00:00 2001 From: John James Jacoby Date: Thu, 19 Sep 2024 15:43:31 -0500 Subject: [PATCH] General: remove `trim()` that is not needed See #199. --- .../includes/classes/class-wp-ms-networks-list-table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-multi-network/includes/classes/class-wp-ms-networks-list-table.php b/wp-multi-network/includes/classes/class-wp-ms-networks-list-table.php index 78f6f55..034030b 100644 --- a/wp-multi-network/includes/classes/class-wp-ms-networks-list-table.php +++ b/wp-multi-network/includes/classes/class-wp-ms-networks-list-table.php @@ -61,7 +61,7 @@ public function prepare_items() { : 'ASC'; $search = ! empty( $_REQUEST['s'] ) - ? stripslashes( trim( sanitize_text_field( $_REQUEST['s'] ) ) ) + ? stripslashes( sanitize_text_field( $_REQUEST['s'] ) ) : ''; if ( false !== strpos( $search, '*' ) ) {