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:
parent
ca94aafb50
commit
d4b30f47bf
|
@ -278,7 +278,7 @@ class WP_Plugins_List_Table extends WP_List_Table {
|
||||||
$term = wp_unslash( $_REQUEST['s'] );
|
$term = wp_unslash( $_REQUEST['s'] );
|
||||||
|
|
||||||
foreach ( $plugin as $value ) {
|
foreach ( $plugin as $value ) {
|
||||||
if ( false !== stripos( strip_tags( $value ), $term ) ) {
|
if ( is_string( $value ) && false !== stripos( strip_tags( $value ), $term ) ) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue