Add screen_options with contextual content, see #18690

git-svn-id: https://develop.svn.wordpress.org/trunk@18864 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2011-10-02 06:59:36 +00:00
parent da55be56a6
commit d0d3855285
20 changed files with 146 additions and 71 deletions
+6 -2
View File
@@ -148,6 +148,12 @@ wp_enqueue_script('inline-edit-post');
$title = $post_type_object->labels->name;
add_screen_option( 'per_page', array('label' => $title, 'default' => 20) );
$current_screen->add_screen_options(
'<p>test</p>'
);
if ( 'post' == $post_type ) {
add_contextual_help($current_screen,
'<p>' . __('You can customize the display of this screen in a number of ways:') . '</p>' .
@@ -180,8 +186,6 @@ if ( 'post' == $post_type ) {
);
}
add_screen_option( 'per_page', array('label' => $title, 'default' => 20) );
require_once('./admin-header.php');
?>
<div class="wrap">