mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
Remove 'Turbo' link from admin header. see #11301
git-svn-id: http://svn.automattic.com/wordpress/trunk@13833 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
39b3db4e20
commit
2794e060dc
@ -113,8 +113,6 @@ if ( function_exists('mb_strlen') ) {
|
||||
<p><?php
|
||||
$links = array();
|
||||
$links[5] = sprintf(__('Howdy, <a href="%1$s" title="Edit your profile">%2$s</a>'), 'profile.php', $user_identity);
|
||||
if ( ! $is_opera )
|
||||
$links[10] = '<span class="turbo-nag hidden"> | <a href="tools.php">' . __('Turbo') . '</a></span>';
|
||||
$links[15] = '| <a href="' . wp_logout_url() . '" title="' . __('Log Out') . '">' . __('Log Out') . '</a>';
|
||||
|
||||
$links = apply_filters('admin_user_info_links', $links, $current_user);
|
||||
|
@ -300,24 +300,4 @@ jQuery(document).ready( function($) {
|
||||
if ( this.lastKey && 9 == this.lastKey )
|
||||
this.focus();
|
||||
});
|
||||
});
|
||||
|
||||
jQuery(document).ready( function($){
|
||||
var turboNag = $('span.turbo-nag', '#user_info');
|
||||
|
||||
if ( !turboNag.length || ('undefined' != typeof(google) && google.gears) )
|
||||
return;
|
||||
|
||||
if ( 'undefined' != typeof GearsFactory ) {
|
||||
return;
|
||||
} else {
|
||||
try {
|
||||
if ( ( 'undefined' != typeof window.ActiveXObject && ActiveXObject('Gears.Factory') ) ||
|
||||
( 'undefined' != typeof navigator.mimeTypes && navigator.mimeTypes['application/x-googlegears'] ) ) {
|
||||
return;
|
||||
}
|
||||
} catch(e){}
|
||||
}
|
||||
|
||||
turboNag.show();
|
||||
});
|
||||
});
|
File diff suppressed because one or more lines are too long
@ -60,7 +60,7 @@ function wp_default_scripts( &$scripts ) {
|
||||
|
||||
$scripts->add( 'utils', "/wp-admin/js/utils$suffix.js", false, '20090102' );
|
||||
|
||||
$scripts->add( 'common', "/wp-admin/js/common$suffix.js", array('jquery', 'hoverIntent', 'utils'), '20100302' );
|
||||
$scripts->add( 'common', "/wp-admin/js/common$suffix.js", array('jquery', 'hoverIntent', 'utils'), '20100326' );
|
||||
$scripts->add_data( 'common', 'group', 1 );
|
||||
$scripts->localize( 'common', 'commonL10n', array(
|
||||
'warnDelete' => __("You are about to permanently delete the selected items.\n 'Cancel' to stop, 'OK' to delete."),
|
||||
|
Loading…
x
Reference in New Issue
Block a user