mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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:
+6
-2
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user