Make WordPress Core


Ignore:
Timestamp:
05/07/2013 04:35:03 PM (12 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/class-wp-media-list-table.php

    r24182 r24189  
    4848        $_num_posts = (array) wp_count_attachments();
    4949        $_total_posts = array_sum($_num_posts) - $_num_posts['trash'];
    50         if ( !isset( $total_orphans ) )
    51                 $total_orphans = $wpdb->get_var( "SELECT COUNT( * ) FROM $wpdb->posts WHERE post_type = 'attachment' AND post_status != 'trash' AND post_parent < 1" );
     50        $total_orphans = $wpdb->get_var( "SELECT COUNT( * ) FROM $wpdb->posts WHERE post_type = 'attachment' AND post_status != 'trash' AND post_parent < 1" );
    5251        $matches = wp_match_mime_types(array_keys($post_mime_types), array_keys($_num_posts));
    5352        foreach ( $matches as $type => $reals )
Note: See TracChangeset for help on using the changeset viewer.