Make WordPress Core

Changeset 11314


Ignore:
Timestamp:
05/13/2009 04:26:40 AM (15 years ago)
Author:
ryan
Message:

Default plugins per page to 999

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r11312 r11314  
    36383638    $option = str_replace('-', '_', "${screen}_per_page");
    36393639    $per_page = get_user_option($option);
    3640     if ( empty($per_page) )
    3641         $per_page = 20;
     3640    if ( empty($per_page) ) {
     3641        if ( 'plugins' == $screen )
     3642            $per_page = 999;
     3643        else
     3644            $per_page = 20;
     3645    }
    36423646
    36433647    $return = '<h5>' . __('Options') . "</h5>\n";
  • trunk/wp-admin/plugins.php

    r11312 r11314  
    297297$plugins_per_page = get_user_option('plugins_per_page');
    298298if ( empty($plugins_per_page) )
    299     $plugins_per_page = 20;
     299    $plugins_per_page = 999;
    300300$plugins_per_page = apply_filters('plugins_per_page', $plugins_per_page);
    301301
Note: See TracChangeset for help on using the changeset viewer.