Changeset 24189
- Timestamp:
- 05/07/2013 04:35:03 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-media-list-table.php
r24182 r24189 48 48 $_num_posts = (array) wp_count_attachments(); 49 49 $_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" ); 52 51 $matches = wp_match_mime_types(array_keys($post_mime_types), array_keys($_num_posts)); 53 52 foreach ( $matches as $type => $reals ) -
trunk/wp-admin/includes/class-wp-upgrader.php
r24188 r24189 1030 1030 $this->upgrade_strings(); 1031 1031 1032 if ( !empty($feedback) )1033 add_filter('update_feedback', $feedback);1034 1035 1032 // Is an update available? 1036 1033 if ( !isset( $current->response ) || $current->response == 'latest' ) -
trunk/wp-admin/includes/theme-install.php
r24123 r24189 30 30 */ 31 31 function install_themes_feature_list() { 32 _deprecated_function( __FUNCTION__, '3.1', 'get_theme_feature_list()' ); 33 32 34 if ( !$cache = get_transient( 'wporg_theme_feature_list' ) ) 33 35 set_transient( 'wporg_theme_feature_list', array(), 3 * HOUR_IN_SECONDS ); … … 38 40 $feature_list = themes_api( 'feature_list', array() ); 39 41 if ( is_wp_error( $feature_list ) ) 40 return $features;42 return array(); 41 43 42 44 set_transient( 'wporg_theme_feature_list', $feature_list, 3 * HOUR_IN_SECONDS ); -
trunk/wp-includes/general-template.php
r24053 r24189 1580 1580 */ 1581 1581 function the_weekday_date($before='',$after='') { 1582 global $wp_locale, $ day, $previousweekday;1582 global $wp_locale, $currentday, $previousweekday; 1583 1583 $the_weekday_date = ''; 1584 1584 if ( $currentday != $previousweekday ) { -
trunk/wp-includes/ms-load.php
r22449 r24189 70 70 */ 71 71 function ms_site_check() { 72 global $wpdb ;72 global $wpdb, $current_site; 73 73 74 74 $blog = get_blog_details();
Note: See TracChangeset
for help on using the changeset viewer.