Make screen options a help tab. Move screen option functions into WP_Screen. see #18690, #18785.

git-svn-id: https://develop.svn.wordpress.org/trunk@18853 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Daryl Koopersmith
2011-10-01 00:24:44 +00:00
parent 1aad45debc
commit a5acbaa574
9 changed files with 412 additions and 298 deletions
-16
View File
@@ -576,22 +576,6 @@ function wp_admin_bar_updates_menu( $wp_admin_bar ) {
$wp_admin_bar->add_menu( array( 'id' => 'updates', 'title' => $update_title, 'href' => network_admin_url( 'update-core.php' ) ) );
}
/**
* Add screen options link.
*
* @since 3.3.0
*/
function wp_admin_bar_screen_options_menu( $wp_admin_bar ) {
$wp_admin_bar->add_menu( array(
'id' => 'screen-options',
'title' => __('Screen Options'),
'href' => '#',
'meta' => array(
'class' => 'screen-meta-toggle hide-if-no-js',
),
) );
}
/**
* Add help link.
*
+1 -1
View File
@@ -61,7 +61,7 @@ function wp_default_scripts( &$scripts ) {
$scripts->add( 'utils', "/wp-admin/js/utils$suffix.js", false, '20101110' );
$scripts->add( 'common', "/wp-admin/js/common$suffix.js", array('jquery', 'hoverIntent', 'utils'), '20110927', 1 );
$scripts->add( 'common', "/wp-admin/js/common$suffix.js", array('jquery', 'hoverIntent', 'utils'), '20110930', 1 );
$scripts->add_script_data( 'common', 'commonL10n', array(
'warnDelete' => __("You are about to permanently delete the selected items.\n 'Cancel' to stop, 'OK' to delete.")
) );