Make WordPress Core

Changeset 19287


Ignore:
Timestamp:
11/14/2011 11:56:18 PM (14 years ago)
Author:
nacin
Message:

Check is_array() against get_themes() in get_theme(). props cgrymala, see #19244.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/theme.php

    r19251 r19287  
    497497    $themes = get_themes();
    498498
    499     if ( array_key_exists($theme, $themes) )
     499    if ( is_array( $themes ) && array_key_exists( $theme, $themes ) )
    500500        return $themes[$theme];
    501501
Note: See TracChangeset for help on using the changeset viewer.