| 253 | 253 | <p><input id="upgrade-plugins" class="button" type="submit" value="<?php esc_attr_e( 'Update Plugins' ); ?>" name="upgrade" /></p> |
| 254 | 254 | <table class="widefat updates-table" id="update-plugins-table"> |
| 255 | 255 | <thead> |
| 256 | 256 | <tr> |
| 257 | 257 | <td class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td> |
| 258 | 258 | <td class="manage-column"><label for="plugins-select-all"><?php _e( 'Select All' ); ?></label></td> |
| 259 | 259 | </tr> |
| 260 | 260 | </thead> |
| 261 | 261 | |
| 262 | 262 | <tbody class="plugins"> |
| 263 | 263 | <?php |
| 264 | 264 | foreach ( (array) $plugins as $plugin_file => $plugin_data ) { |
| 265 | 265 | $plugin_data = (object) _get_plugin_data_markup_translate( $plugin_file, (array) $plugin_data, false, true ); |
| 266 | 266 | |
| 267 | 267 | $icon = '<span class="dashicons dashicons-admin-plugins"></span>'; |
| 269 | 269 | foreach ( $preferred_icons as $preferred_icon ) { |
| 270 | 270 | if ( ! empty( $plugin_data->update->icons[ $preferred_icon ] ) ) { |
| 271 | 271 | $icon = '<img src="' . esc_url( $plugin_data->update->icons[ $preferred_icon ] ) . '" alt="" />'; |
| 272 | 272 | break; |
| 273 | 273 | } |
| 274 | 274 | } |
| 275 | 275 | |
| 276 | 276 | // Get plugin compat for running version of WordPress. |
| 277 | 277 | if ( isset( $plugin_data->update->tested ) && version_compare( $plugin_data->update->tested, $cur_wp_version, '>=' ) ) { |
| 278 | 278 | $compat = '<br />' . sprintf( __( 'Compatibility with WordPress %1$s: 100%% (according to its author)' ), $cur_wp_version ); |
| 279 | 279 | } else { |
| 280 | 280 | $compat = '<br />' . sprintf( __( 'Compatibility with WordPress %1$s: Unknown' ), $cur_wp_version ); |
| 281 | 281 | } |
| 282 | 282 | // Get plugin compat for updated version of WordPress. |
| 283 | 283 | if ( $core_update_version ) { |