mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 12:58:25 +01:00
* Allow Pagination for Must-Use/Dropin plugins
* Move help text into WP_Plugins_List_Table Fixes #17327 for 3.1 git-svn-id: https://develop.svn.wordpress.org/branches/3.1@17807 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b4d82f8dc8
commit
645e6c2603
@ -195,13 +195,6 @@ class WP_Plugins_List_Table extends WP_List_Table {
|
||||
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;
|
||||
|
||||
@ -286,11 +279,19 @@ class WP_Plugins_List_Table extends WP_List_Table {
|
||||
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() {
|
||||
|
@ -407,13 +407,6 @@ if ( $s )
|
||||
<input type="hidden" name="plugin_status" value="<?php echo esc_attr($status) ?>" />
|
||||
<input type="hidden" name="paged" value="<?php echo esc_attr($page) ?>" />
|
||||
|
||||
<?php
|
||||
if ( 'mustuse' == $status )
|
||||
echo '<br class="clear" /><p>' . __( 'Files in the <code>/wp-content/mu-plugins</code> directory are executed automatically.' ) . '</p>';
|
||||
elseif ( 'dropins' == $status )
|
||||
echo '<br class="clear" /><p>' . __( 'Drop-ins are advanced plugins in the <code>/wp-content</code> directory that replace WordPress functionality when present.' ) . '</p>';
|
||||
?>
|
||||
|
||||
<?php $wp_list_table->display(); ?>
|
||||
</form>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user