From 6a42f0661a264be00b8d1cf39354f53683a9906b Mon Sep 17 00:00:00 2001 From: randhirinsta Date: Wed, 15 Jan 2025 19:20:59 +0530 Subject: [PATCH] php cs --- includes/Extension/SearchReplace/Replace/class-sql.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/includes/Extension/SearchReplace/Replace/class-sql.php b/includes/Extension/SearchReplace/Replace/class-sql.php index f81ac76..6ba63b5 100644 --- a/includes/Extension/SearchReplace/Replace/class-sql.php +++ b/includes/Extension/SearchReplace/Replace/class-sql.php @@ -167,13 +167,11 @@ public function get_edit_url() { public function recursive_unserialize_replace( $from = '', $to = '', $data = '', $serialised = false ) { // Some unserialised data cannot be re-serialised eg. SimpleXMLElements. global $wpdb; - try { $unserialized = false; if ( ! empty( $data ) && ( $wpdb->prefix . 'comments' !== $this->table_name || 'comment_content' !== $this->column_name ) && is_serialized( $data ) ) { $unserialized = @unserialize( $data, array( 'allowed_classes' => false ) ); } - if ( is_string( $data ) && false !== $unserialized ) { $data = $this->recursive_unserialize_replace( $from, $to, $unserialized, true ); } elseif ( is_array( $data ) ) {