From d4b30f47bfbd9b293f9b96d4ac8669704346dacc Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Thu, 14 Jan 2016 20:00:29 +0000 Subject: [PATCH] Plugins: Prevent a warning when searching in the plugins list table. After [36182], plugin data contains compatibility info from the API, which is an array and cannot be searched. Fixes #35461. Built from https://develop.svn.wordpress.org/trunk@36301 git-svn-id: http://core.svn.wordpress.org/trunk@36268 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-plugins-list-table.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/class-wp-plugins-list-table.php b/wp-admin/includes/class-wp-plugins-list-table.php index a5e3d984f7..5194f5210f 100644 --- a/wp-admin/includes/class-wp-plugins-list-table.php +++ b/wp-admin/includes/class-wp-plugins-list-table.php @@ -278,7 +278,7 @@ class WP_Plugins_List_Table extends WP_List_Table { $term = wp_unslash( $_REQUEST['s'] ); foreach ( $plugin as $value ) { - if ( false !== stripos( strip_tags( $value ), $term ) ) { + if ( is_string( $value ) && false !== stripos( strip_tags( $value ), $term ) ) { return true; } } diff --git a/wp-includes/version.php b/wp-includes/version.php index 1e9710a893..7fbbd41e1b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-alpha-36300'; +$wp_version = '4.5-alpha-36301'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.