Screen API: After [37972], ensure that `$box['args']` is an array before trying to access `__widget_basename`.
This prevents a PHP fatal error on the Nav Menus screen where `$args` is an object. Props elrae. Fixes #35021. Built from https://develop.svn.wordpress.org/trunk@38004 git-svn-id: http://core.svn.wordpress.org/trunk@37945 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7b5cd0c021
commit
30420b7d19
|
@ -120,7 +120,7 @@ function meta_box_prefs( $screen ) {
|
|||
|
||||
$widget_title = $box['title'];
|
||||
|
||||
if ( isset( $box['args']['__widget_basename'] ) ) {
|
||||
if ( is_array( $box['args'] ) && isset( $box['args']['__widget_basename'] ) ) {
|
||||
$widget_title = $box['args']['__widget_basename'];
|
||||
}
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.6-beta2-38003';
|
||||
$wp_version = '4.6-beta2-38004';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue