Ticket #10464: plugin_update_rows_patch.diff
| File plugin_update_rows_patch.diff, 922 bytes (added by , 17 years ago) |
|---|
-
wp-admin/includes/update.php
145 145 echo "<span id='wp-version-message'>$msg</span>"; 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' ); 150 159 if ( !isset( $current->response[ $file ] ) ) … … 169 178 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 = '') { 175 183