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
This commit is contained in:
Pascal Birchler 2016-01-14 20:00:29 +00:00
parent ca94aafb50
commit d4b30f47bf
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}

View File

@ -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.