WordPress.org

Make WordPress Core

Ticket #15576: 15576.6.patch

File 15576.6.patch, 6.3 KB (added by SergeyBiryukov, 2 years ago)
  • wp-admin/edit-comments.php

     
    109109else 
    110110        $title = __('Comments'); 
    111111 
    112 add_screen_option( 'per_page', array('label' => _x( 'Comments', 'comments per page (screen options)' )) ); 
     112add_screen_option( 'per_page', array( 'label' => _x( 'Items', 'items per page (screen options)' ) ) ); 
    113113 
    114114get_current_screen()->add_help_tab( array( 
    115115'id'            => 'overview', 
  • wp-admin/edit-tags.php

     
    3636        $submenu_file = "edit-tags.php?taxonomy=$taxonomy"; 
    3737} 
    3838 
    39 add_screen_option( 'per_page', array( 'label' => $title, 'default' => 20, 'option' => 'edit_' . $tax->name . '_per_page' ) ); 
     39add_screen_option( 'per_page', array( 'label' => _x( 'Items', 'items per page (screen options)' ), 'default' => 20, 'option' => 'edit_' . $tax->name . '_per_page' ) ); 
    4040 
    4141switch ( $wp_list_table->current_action() ) { 
    4242 
  • wp-admin/edit.php

     
    215215        ); 
    216216} 
    217217 
    218 add_screen_option( 'per_page', array( 'label' => $title, 'default' => 20, 'option' => 'edit_' . $post_type . '_per_page' ) ); 
     218add_screen_option( 'per_page', array( 'label' => _x( 'Items', 'items per page (screen options)' ), 'default' => 20, 'option' => 'edit_' . $post_type . '_per_page' ) ); 
    219219 
    220220require_once('./admin-header.php'); 
    221221?> 
  • wp-admin/network/site-themes.php

     
    123123} 
    124124 
    125125add_thickbox(); 
    126 add_screen_option( 'per_page', array( 'label' => _x( 'Themes', 'themes per page (screen options)' ) ) ); 
     126add_screen_option( 'per_page', array( 'label' => _x( 'Items', 'items per page (screen options)' ) ) ); 
    127127 
    128128$site_url_no_http = preg_replace( '#^http(s)?://#', '', get_blogaddress_by_id( $id ) ); 
    129129$title_site_url_linked = sprintf( __('Edit Site: <a href="%1$s">%2$s</a>'), get_blogaddress_by_id( $id ), $site_url_no_http ); 
  • wp-admin/network/site-users.php

     
    162162        exit(); 
    163163} 
    164164 
    165 add_screen_option( 'per_page', array( 'label' => _x( 'Users', 'users per page (screen options)' ) ) ); 
     165add_screen_option( 'per_page', array( 'label' => _x( 'Items', 'items per page (screen options)' ) ) ); 
    166166 
    167167$site_url_no_http = preg_replace( '#^http(s)?://#', '', get_blogaddress_by_id( $id ) ); 
    168168$title_site_url_linked = sprintf( __('Edit Site: <a href="%1$s">%2$s</a>'), get_blogaddress_by_id( $id ), $site_url_no_http ); 
  • wp-admin/network/sites.php

     
    2222$title = __( 'Sites' ); 
    2323$parent_file = 'sites.php'; 
    2424 
    25 add_screen_option( 'per_page', array('label' => _x( 'Sites', 'sites per page (screen options)' )) ); 
     25add_screen_option( 'per_page', array( 'label' => _x( 'Items', 'items per page (screen options)' ) ) ); 
    2626 
    2727get_current_screen()->add_help_tab( array( 
    2828        'id'      => 'overview', 
  • wp-admin/network/themes.php

     
    189189 
    190190add_thickbox(); 
    191191 
    192 add_screen_option( 'per_page', array('label' => _x( 'Themes', 'themes per page (screen options)' )) ); 
     192add_screen_option( 'per_page', array( 'label' => _x( 'Items', 'items per page (screen options)' ) ) ); 
    193193 
    194194get_current_screen()->add_help_tab( array( 
    195195        'id'      => 'overview', 
  • wp-admin/network/users.php

     
    225225$title = __( 'Users' ); 
    226226$parent_file = 'users.php'; 
    227227 
    228 add_screen_option( 'per_page', array('label' => _x( 'Users', 'users per page (screen options)' )) ); 
     228add_screen_option( 'per_page', array( 'label' => _x( 'Items', 'items per page (screen options)' ) ) ); 
    229229 
    230230get_current_screen()->add_help_tab( array( 
    231231        'id'      => 'overview', 
  • wp-admin/plugins.php

     
    321321wp_enqueue_script('plugin-install'); 
    322322add_thickbox(); 
    323323 
    324 add_screen_option( 'per_page', array('label' => _x( 'Plugins', 'plugins per page (screen options)' ), 'default' => 999 ) ); 
     324add_screen_option( 'per_page', array( 'label' => _x( 'Items', 'items per page (screen options)' ), 'default' => 999 ) ); 
    325325 
    326326get_current_screen()->add_help_tab( array( 
    327327'id'            => 'overview', 
  • wp-admin/upload.php

     
    143143wp_enqueue_script( 'jquery-ui-draggable' ); 
    144144wp_enqueue_script( 'media' ); 
    145145 
    146 add_screen_option( 'per_page', array('label' => _x( 'Media items', 'items per page (screen options)' )) ); 
     146add_screen_option( 'per_page', array( 'label' => _x( 'Items', 'items per page (screen options)' ) ) ); 
    147147 
    148148get_current_screen()->add_help_tab( array( 
    149149'id'            => 'overview', 
  • wp-admin/users.php

     
    1717$title = __('Users'); 
    1818$parent_file = 'users.php'; 
    1919 
    20 add_screen_option( 'per_page', array('label' => _x( 'Users', 'users per page (screen options)' )) ); 
     20add_screen_option( 'per_page', array( 'label' => _x( 'Items', 'items per page (screen options)' ) ) ); 
    2121 
    2222// contextual help - choose Help on the top right of admin panel to preview this. 
    2323get_current_screen()->add_help_tab( array(