Changeset 11775
- Timestamp:
- 08/04/2009 09:52:31 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/update.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/update.php
r11517 r11775 146 146 } 147 147 148 function wp_plugin_update_rows() { 149 $plugins = get_transient( 'update_plugins' ); 150 $plugins = array_keys( $plugins->response ); 151 foreach( $plugins as $plugin_file ) { 152 add_action( "after_plugin_row_$plugin_file", 'wp_plugin_update_row', 10, 2 ); 153 } 154 } 155 add_action( 'admin_init', 'wp_plugin_update_rows' ); 156 148 157 function wp_plugin_update_row( $file, $plugin_data ) { 149 158 $current = get_transient( 'update_plugins' ); … … 170 179 echo '</div></td></tr>'; 171 180 } 172 add_action( 'after_plugin_row', 'wp_plugin_update_row', 10, 2 );173 181 174 182 function wp_update_plugin($plugin, $feedback = '') {
Note: See TracChangeset
for help on using the changeset viewer.