WordPress.org

Make WordPress Core

Changeset 9227


Ignore:
Timestamp:
10/17/08 18:30:04 (5 years ago)
Author:
ryan
Message:

Add some type sanity checks. Props DD32. fixes #7800

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/themes.php

    r9223 r9227  
    7575        $themes_update = get_option('update_themes'); 
    7676 
    77     if ( isset($theme->stylesheet) ) 
     77    if ( is_object($theme) && isset($theme->stylesheet) ) 
    7878        $stylesheet = $theme->stylesheet; 
    79     elseif ( isset($theme['Stylesheet']) ) 
     79    elseif ( is_array($theme) && isset($theme['Stylesheet']) ) 
    8080        $stylesheet = $theme['Stylesheet']; 
    8181    else 
Note: See TracChangeset for help on using the changeset viewer.