From 5209de6052e9bef44d507fdabe717ea0c7cabd6b Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Thu, 14 Jan 2016 19:59:06 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@36301 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-plugins-list-table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/class-wp-plugins-list-table.php b/src/wp-admin/includes/class-wp-plugins-list-table.php index a5e3d984f7..5194f5210f 100644 --- a/src/wp-admin/includes/class-wp-plugins-list-table.php +++ b/src/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; } }