Plugin install: Remove columns and screen options.

fixes #28803.
Built from https://develop.svn.wordpress.org/trunk@29498


git-svn-id: http://core.svn.wordpress.org/trunk@29276 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2014-08-15 09:38:15 +00:00
parent ef5f9c69b3
commit 1f20c88b68
1 changed files with 6 additions and 18 deletions

View File

@ -286,12 +286,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
} }
public function get_columns() { public function get_columns() {
return array( return array();
'name' => _x( 'Name', 'plugin name' ),
'version' => __( 'Version' ),
'rating' => __( 'Rating' ),
'description' => __( 'Description' ),
);
} }
public function _order_callback( $plugin_a, $plugin_b ) { public function _order_callback( $plugin_a, $plugin_b ) {
@ -328,13 +323,6 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
'Tools' => _x( 'Tools', 'Plugin installer group title' ), 'Tools' => _x( 'Tools', 'Plugin installer group title' ),
); );
list( $columns, $hidden ) = $this->get_column_info();
$style = array();
foreach ( $columns as $column_name => $column_display_name ) {
$style[ $column_name ] = in_array( $column_name, $hidden ) ? 'style="display:none;"' : '';
}
$group = null; $group = null;
foreach ( (array) $this->items as $plugin ) { foreach ( (array) $this->items as $plugin ) {
@ -423,8 +411,8 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
?> ?>
<div class="plugin-card"> <div class="plugin-card">
<div class="plugin-card-top"> <div class="plugin-card-top">
<div class="name column-name"<?php echo $style['name']; ?>> <div class="name column-name">
<h4><a href="<?php echo esc_url( $details_link ) ?>" class="thickbox"><?php echo $title; ?></a></h4> <h4><a href="<?php echo esc_url( $details_link ); ?>" class="thickbox"><?php echo $title; ?></a></h4>
<div class="action-links"> <div class="action-links">
<?php <?php
if ( ! empty( $action_links ) ) { if ( ! empty( $action_links ) ) {
@ -433,13 +421,13 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
?> ?>
</div> </div>
</div> </div>
<div class="desc column-description"<?php echo $style['description']; ?>> <div class="desc column-description">
<p><?php echo $description ?></p> <p><?php echo $description; ?></p>
<p class="authors"><?php echo $author; ?></p> <p class="authors"><?php echo $author; ?></p>
</div> </div>
</div> </div>
<div class="plugin-card-bottom"> <div class="plugin-card-bottom">
<div class="vers column-rating"<?php echo $style['rating']; ?>> <div class="vers column-rating">
<?php wp_star_rating( array( 'rating' => $plugin['rating'], 'type' => 'percent', 'number' => $plugin['num_ratings'] ) ); ?> <?php wp_star_rating( array( 'rating' => $plugin['rating'], 'type' => 'percent', 'number' => $plugin['num_ratings'] ) ); ?>
<span class="num-ratings">(<?php echo number_format_i18n( $plugin['num_ratings'] ); ?>)</span> <span class="num-ratings">(<?php echo number_format_i18n( $plugin['num_ratings'] ); ?>)</span>
</div> </div>