Wordpress 3.7
[autoinstalls/wordpress.git] / wp-admin / includes / class-wp-themes-list-table.php
index 684bd8be00d0a8b836a878304595b5695fc46ca9..d49d9930b9555607f3b1f996131d4c28ef0f5fb4 100644 (file)
@@ -114,6 +114,16 @@ class WP_Themes_List_Table extends WP_List_Table {
                return array();
        }
 
+       function display_rows_or_placeholder() {
+               if ( $this->has_items() ) {
+                       $this->display_rows();
+               } else {
+                       echo '<div class="no-items">';
+                       $this->no_items();
+                       echo '</div>';
+               }
+       }
+
        function display_rows() {
                $themes = $this->items;
 
@@ -149,6 +159,7 @@ class WP_Themes_List_Table extends WP_List_Table {
                                        . "' );" . '">' . __( 'Delete' ) . '</a>';
 
                        $actions       = apply_filters( 'theme_action_links', $actions, $theme );
+                       $actions       = apply_filters( "theme_action_links_$stylesheet", $actions, $theme );
                        $delete_action = isset( $actions['delete'] ) ? '<div class="delete-theme">' . $actions['delete'] . '</div>' : '';
                        unset( $actions['delete'] );