- Timestamp:
- 03/21/2012 04:19:27 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-ms-themes-list-table.php
r20160 r20236 72 72 } 73 73 74 $maybe_update = current_user_can( 'update_themes' ) && ! $this->is_site_themes && get_site_transient( 'update_themes' );74 $maybe_update = current_user_can( 'update_themes' ) && ! $this->is_site_themes && $current = get_site_transient( 'update_themes' ); 75 75 76 76 foreach ( (array) $themes['all'] as $key => $theme ) { … … 80 80 } 81 81 82 if ( $maybe_update && isset( $current->response[ $key ] ) ) { 83 $themes['all'][ $key ]->update = true; 84 $themes['upgrade'][ $key ] = $themes['all'][ $key ]; 85 } 86 82 87 $filter = $theme->is_allowed( $allowed_where, $this->site_id ) ? 'enabled' : 'disabled'; 83 88 $themes[ $filter ][ $key ] = $themes['all'][ $key ]; 84 85 if ( $maybe_update && isset( $current->response[ $key ] ) )86 $themes['upgrade'][ $key ] = $themes['all'][ $key ];87 89 } 88 90 … … 262 264 263 265 function single_row( $key, $theme ) { 264 global $status, $page, $s ;266 global $status, $page, $s, $totals; 265 267 266 268 $context = $status; … … 305 307 306 308 $id = sanitize_html_class( $theme->get_stylesheet() ); 309 310 if ( ! empty( $totals['upgrade'] ) && ! empty( $theme->update ) ) 311 $class .= ' update'; 307 312 308 313 echo "<tr id='$id' class='$class'>";
Note: See TracChangeset
for help on using the changeset viewer.