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 ) ) {