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

git-svn-id: http://svn.automattic.com/wordpress/trunk@18867 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz
2011-10-03 04:00:57 +00:00
parent dbd18bea3d
commit bbafdfa0e5
21 changed files with 226 additions and 190 deletions

View File

@@ -137,9 +137,9 @@ wp_enqueue_script( 'wp-ajax-response' );
wp_enqueue_script( 'jquery-ui-draggable' );
wp_enqueue_script( 'media' );
add_screen_option( 'per_page', array('label' => _x( 'Media items', 'items per page (screen options)' )) );
$current_screen->add_option( 'per_page', array('label' => _x( 'Media items', 'items per page (screen options)' )) );
$current_screen->add_screen_options(
$current_screen->add_option_context(
'<p>test</p>'
);