]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/includes/class-wp-plugins-list-table.php
Wordpress 3.1.3
[autoinstalls/wordpress.git] / wp-admin / includes / class-wp-plugins-list-table.php
index eefffb1033a6a4564f02e5f699599e35dc1fcaa7..b5ad6d48b6eefbd4095b9e837f0a090687b97e72 100644 (file)
@@ -195,13 +195,6 @@ class WP_Plugins_List_Table extends WP_List_Table {
                return array();
        }
 
                return array();
        }
 
-       function display_tablenav( $which ) {
-               global $status;
-
-               if ( !in_array( $status, array( 'mustuse', 'dropins' ) ) )
-                       parent::display_tablenav( $which );
-       }
-
        function get_views() {
                global $totals, $status;
 
        function get_views() {
                global $totals, $status;
 
@@ -286,11 +279,19 @@ class WP_Plugins_List_Table extends WP_List_Table {
        function extra_tablenav( $which ) {
                global $status;
 
        function extra_tablenav( $which ) {
                global $status;
 
-               if ( 'recently_activated' == $status ) { ?>
-                       <div class="alignleft actions">
-                               <?php submit_button( __( 'Clear List' ), 'secondary', 'clear-recent-list', false ); ?>
-                       </div>
-               <?php }
+               if ( ! in_array($status, array('recently_activated', 'mustuse', 'dropins') ) )
+                       return;
+
+               echo '<div class="alignleft actions">';
+
+               if ( 'recently_activated' == $status )
+                       submit_button( __( 'Clear List' ), 'secondary', 'clear-recent-list', false );
+               elseif ( 'top' == $which && 'mustuse' == $status )
+                       echo '<p>' . __( 'Files in the <code>/wp-content/mu-plugins</code> directory are executed automatically.' ) . '</p>';
+               elseif ( 'top' == $which && 'dropins' == $status )
+                       echo '<p>' . __( 'Drop-ins are advanced plugins in the <code>/wp-content</code> directory that replace WordPress functionality when present.' ) . '</p>';
+
+               echo '</div>';
        }
 
        function current_action() {
        }
 
        function current_action() {