Changeset 16372 for trunk/wp-admin/includes/class-wp-plugins-list-table.php
- Timestamp:
- 11/14/2010 06:34:59 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-plugins-list-table.php
r16350 r16372 65 65 if ( apply_filters( 'show_advanced_plugins', true, 'dropins' ) ) 66 66 $plugins['dropins'] = get_dropins(); 67 68 $current = get_site_transient( 'update_plugins' ); 69 foreach ( (array) $plugins['all'] as $plugin_file => $plugin_data ) { 70 if ( isset( $current->response[ $plugin_file ] ) ) 71 $plugins['upgrade'][ $plugin_file ] = $plugin_data; 72 } 67 73 } 68 74 … … 76 82 unset( $recently_activated[$key] ); 77 83 update_option( 'recently_activated', $recently_activated ); 78 79 $current = get_site_transient( 'update_plugins' );80 81 foreach ( array( 'all', 'mustuse', 'dropins' ) as $type ) {82 foreach ( (array) $plugins[$type] as $plugin_file => $plugin_data ) {83 // Translate, Apply Markup, Sanitize HTML84 $plugins[$type][$plugin_file] = _get_plugin_data_markup_translate( $plugin_file, $plugin_data, false, true );85 }86 }87 84 88 85 foreach ( (array) $plugins['all'] as $plugin_file => $plugin_data ) { … … 101 98 $plugins['inactive'][ $plugin_file ] = $plugin_data; 102 99 } 103 104 if ( isset( $current->response[ $plugin_file ] ) )105 $plugins['upgrade'][ $plugin_file ] = $plugin_data;106 100 } 107 101 … … 121 115 $status = 'all'; 122 116 123 $this->items = $plugins[ $status ]; 117 $this->items = array(); 118 foreach ( $plugins[ $status ] as $plugin_file => $plugin_data ) { 119 // Translate, Apply Markup, Sanitize HTML 120 $this->items[$plugin_file] = _get_plugin_data_markup_translate( $plugin_file, $plugin_data, false, true ); 121 } 122 124 123 $total_this_page = $totals[ $status ]; 125 124
Note: See TracChangeset
for help on using the changeset viewer.