Use add_option() method, introduce add_option_context() method for adding specific text above the screen options, see #18690

git-svn-id: https://develop.svn.wordpress.org/trunk@18867 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2011-10-03 04:00:57 +00:00
parent d6f613fcd3
commit 98554b4bb6
21 changed files with 226 additions and 190 deletions

View File

@@ -109,11 +109,8 @@ if ( $post_id )
else
$title = __('Comments');
add_screen_option( 'per_page', array('label' => _x( 'Comments', 'comments per page (screen options)' )) );
$current_screen->add_screen_options(
'<p>test</p>'
);
$current_screen->add_option( 'per_page', array('label' => _x( 'Comments', 'comments per page (screen options)' )) );
$current_screen->add_option_context( '<p>test</p>' );
add_contextual_help( $current_screen, '<p>' . __( 'You can manage comments made on your site similar to the way you manage Posts and other content. This screen is customizable in the same ways as other management screens, and you can act on comments using the on-hover action links or the Bulk Actions.' ) . '</p>' .
'<p>' . __( 'A yellow row means the comment is waiting for you to moderate it.' ) . '</p>' .