Make WordPress Core


Ignore:
Timestamp:
05/07/2013 04:35:03 PM (11 years ago)
Author:
nacin
Message:

Fix usage of undeclared variables.

  • the_weekday_date() needs the global $currentday
  • ms_site_check() needs the global $current_site
  • media list table does not need to check for $total_orphans
  • upgrader has no $feedback variable, appears to be copypasta from other upgrade APIs
  • install_themes_feature_list() has no $features variable, return array() instead of a new return type of WP_Error

see #24210.

File:
1 edited

Legend:

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

    r24123 r24189  
    3030 */
    3131function install_themes_feature_list() {
     32    _deprecated_function( __FUNCTION__, '3.1', 'get_theme_feature_list()' );
     33
    3234    if ( !$cache = get_transient( 'wporg_theme_feature_list' ) )
    3335        set_transient( 'wporg_theme_feature_list', array(), 3 * HOUR_IN_SECONDS );
     
    3840    $feature_list = themes_api( 'feature_list', array() );
    3941    if ( is_wp_error( $feature_list ) )
    40         return $features;
     42        return array();
    4143
    4244    set_transient( 'wporg_theme_feature_list', $feature_list, 3 * HOUR_IN_SECONDS );
Note: See TracChangeset for help on using the changeset viewer.