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.

git-svn-id: https://develop.svn.wordpress.org/trunk@36301 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Pascal Birchler 2016-01-14 19:59:06 +00:00
parent 4e9f90caa1
commit 5209de6052
1 changed files with 1 additions and 1 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;
}
}