diff --git wp-admin/includes/class-wp-plugin-install-list-table.php wp-admin/includes/class-wp-plugin-install-list-table.php
index acfb0e5..a255b90 100644
|
|
class WP_Plugin_Install_List_Table extends WP_List_Table { |
184 | 184 | |
185 | 185 | protected function get_columns() { |
186 | 186 | return array( |
187 | | 'name' => _x( 'Name', 'plugin name' ), |
188 | | 'version' => __( 'Version' ), |
189 | | 'rating' => __( 'Rating' ), |
190 | | 'description' => __( 'Description' ), |
| 187 | 'name' => _x( 'Name', 'plugin name' ), |
| 188 | 'version' => __( 'Version' ), |
| 189 | 'compatibility' => __( 'Compatibility' ), |
| 190 | 'rating' => __( 'Rating' ), |
| 191 | 'description' => __( 'Description' ), |
191 | 192 | ); |
192 | 193 | } |
193 | 194 | |
194 | 195 | protected function display_rows() { |
| 196 | global $wp_version; |
| 197 | |
195 | 198 | $plugins_allowedtags = array( |
196 | 199 | 'a' => array( 'href' => array(),'title' => array(), 'target' => array() ), |
197 | 200 | 'abbr' => array( 'title' => array() ),'acronym' => array( 'title' => array() ), |
… |
… |
class WP_Plugin_Install_List_Table extends WP_List_Table { |
271 | 274 | <div class="action-links"><?php if ( !empty( $action_links ) ) echo implode( ' | ', $action_links ); ?></div> |
272 | 275 | </td> |
273 | 276 | <td class="vers column-version"<?php echo $style['version']; ?>><?php echo $version; ?></td> |
| 277 | <td class="compatibility column-compatibility"<?php echo $style['compatibility']; ?>> |
| 278 | <?php |
| 279 | if ( version_compare( $plugin['requires'], $wp_version, '>' ) ) { |
| 280 | printf( __( 'Requires WordPress %s' ), $plugin['requires'] ); |
| 281 | } elseif ( version_compare( $plugin['tested'], $wp_version, '<' ) ) { |
| 282 | printf( __( 'Not tested with WordPress %s' ), $wp_version ); |
| 283 | } else { |
| 284 | echo '<div class="dashicons dashicons-yes"></div>'; |
| 285 | } |
| 286 | ?> |
| 287 | </td> |
274 | 288 | <td class="vers column-rating"<?php echo $style['rating']; ?>> |
275 | 289 | <?php wp_star_rating( array( 'rating' => $plugin['rating'], 'type' => 'percent', 'number' => $plugin['num_ratings'] ) ); ?> |
276 | 290 | </td> |