Make WordPress Core


Ignore:
Timestamp:
04/21/2009 06:49:53 AM (17 years ago)
Author:
ryan
Message:

Add per page screen option to plugins page. see #9527

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/plugins.php

    r11014 r11027  
    207207<div class="wrap">
    208208<?php screen_icon(); ?>
    209     <h2><?php echo wp_specialchars( $title ); ?></h2>
     209<h2><?php echo wp_specialchars( $title ); ?></h2>
     210
     211<p><?php _e('Plugins extend and expand the functionality of WordPress. Install new plugins and then activate, deactivate, or delete them here.'); ?></p>
    210212
    211213<?php
     
    285287$total_this_page = "total_{$status}_plugins";
    286288$total_this_page = $$total_this_page;
    287 $plugins_per_page = apply_filters('plugins_per_page', 20, $status);
     289$plugins_per_page = get_user_option('plugins_per_page');
     290if ( empty($plugins_per_page) )
     291    $plugins_per_page = 20;
     292$plugins_per_page = apply_filters('plugins_per_page', $plugins_per_page);
    288293
    289294$start = ($page - 1) * $plugins_per_page;
Note: See TracChangeset for help on using the changeset viewer.