mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Check is_array() against get_themes() in get_theme(). props cgrymala, see #19244.
git-svn-id: https://develop.svn.wordpress.org/trunk@19287 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -496,7 +496,7 @@ function get_theme_roots() {
|
||||
function get_theme($theme) {
|
||||
$themes = get_themes();
|
||||
|
||||
if ( array_key_exists($theme, $themes) )
|
||||
if ( is_array( $themes ) && array_key_exists( $theme, $themes ) )
|
||||
return $themes[$theme];
|
||||
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user