Make WordPress Core


Ignore:
Timestamp:
03/19/2010 08:03:52 AM (15 years ago)
Author:
dd32
Message:

Highlight correct submenu for Theme Installs. Fix PHP Notice for unset object properties (requires among others may not be set).

File:
1 edited

Legend:

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

    r13242 r13763  
    456456    foreach ( (array)$api->sections as $section_name => $content )
    457457        $api->sections[$section_name] = wp_kses($content, $themes_allowedtags);
    458     foreach ( array('version', 'author', 'requires', 'tested', 'homepage', 'downloaded', 'slug') as $key )
    459         $api->$key = wp_kses($api->$key, $themes_allowedtags);
     458
     459    foreach ( array('version', 'author', 'requires', 'tested', 'homepage', 'downloaded', 'slug') as $key ) {
     460        if ( isset($api->$key) )
     461            $api->$key = wp_kses($api->$key, $themes_allowedtags);
     462    }
    460463
    461464    iframe_header( __('Theme Install') );
Note: See TracChangeset for help on using the changeset viewer.