WordPress.org

Make WordPress Core

Ticket #14252: garyc40.14252.diff

File garyc40.14252.diff, 1.5 KB (added by garyc40, 5 years ago)

there's a patch for that

  • wp-admin/includes/class-wp-themes-list-table.php

    diff --git wp-admin/includes/class-wp-themes-list-table.php wp-admin/includes/class-wp-themes-list-table.php
    index 97ae61c..42eaff0 100644
    class WP_Themes_List_Table extends WP_List_Table { 
    4747                unset( $themes[$ct->name] ); 
    4848                uksort( $themes, "strnatcasecmp" ); 
    4949 
    50                 $per_page = 15; 
     50                $per_page = $this->get_items_per_page( 'themes_per_page', 15 ); 
    5151                $page = $this->get_pagenum(); 
    5252 
    5353                $start = ( $page - 1 ) * $per_page; 
  • wp-admin/includes/misc.php

    diff --git wp-admin/includes/misc.php wp-admin/includes/misc.php
    index e3d3dad..b867d00 100644
    function set_screen_options() { 
    346346                        case 'upload_per_page': 
    347347                        case 'edit_tags_per_page': 
    348348                        case 'plugins_per_page': 
     349                        case 'themes_per_page': 
    349350                        // Network admin 
    350351                        case 'sites_network_per_page': 
    351352                        case 'users_network_per_page': 
  • wp-admin/themes.php

    diff --git wp-admin/themes.php wp-admin/themes.php
    index ea36c4b..37adb86 100644
    $wp_list_table->prepare_items(); 
    3535$title = __('Manage Themes'); 
    3636$parent_file = 'themes.php'; 
    3737 
     38add_screen_option( 'per_page', array( 'label' => _x( 'Themes', 'themes per page (screen options)' ) ) ); 
     39 
    3840if ( current_user_can( 'switch_themes' ) ) : 
    3941 
    4042$help = '<p>' . __('Aside from the default theme included with your WordPress installation, themes are designed and developed by third parties.') . '</p>';