Screen Options: Improve items per page option label.

Previously the label just said "Posts", "Pages", or "Comments". This was bad in terms of accessibility and internationalization because of missing context.
This change adds a default label "Number of items per page:" to `WP_Screen->render_per_page_options()` and removes all the existing one-word labels.

props afercia.
fixes #31349, #15576.

git-svn-id: https://develop.svn.wordpress.org/trunk@31696 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dominik Schilling (ocean90)
2015-03-10 15:31:54 +00:00
parent b1bbce3f6e
commit 3bb3d2f1a5
13 changed files with 47 additions and 25 deletions

View File

@@ -109,7 +109,7 @@ if ( $post_id )
else
$title = __('Comments');
add_screen_option( 'per_page', array('label' => _x( 'Comments', 'comments per page (screen options)' )) );
add_screen_option( 'per_page' );
get_current_screen()->add_help_tab( array(
'id' => 'overview',