Make WordPress Core

Changeset 13763


Ignore:
Timestamp:
03/19/2010 08:03:52 AM (14 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).

Location:
trunk/wp-admin
Files:
2 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') );
  • trunk/wp-admin/update.php

    r13733 r13763  
    206206        $title = __('Install Themes');
    207207        $parent_file = 'themes.php';
    208         $submenu_file = 'theme-install.php';
     208        $submenu_file = 'themes.php';
    209209        require_once('admin-header.php');
    210210
Note: See TracChangeset for help on using the changeset viewer.