update_nag [ WordPress Function ]
update_nag ( No parameters )
| Defined at: |
|
No description yet.
Source
<?php
function update_nag() {
if ( is_multisite() && !current_user_can('update_core') )
return false;
global $pagenow;
if ( 'update-core.php' == $pagenow )
return;
$cur = get_preferred_from_update_core();
if ( ! isset( $cur->response ) || $cur->response != 'upgrade' )
return false;
if ( current_user_can('update_core') ) {
$msg = sprintf( __('<a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> is available! <a href="%2$s">Please update now</a>.'), $cur->current, network_admin_url( 'update-core.php' ) );
} else {
$msg = sprintf( __('<a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> is available! Please notify the site administrator.'), $cur->current );
}
echo "<div class='update-nag'>$msg</div>";
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- No Update Nag | coffee2code.com
Jun 27, 2011 ... Removes the WordPress update nag that appears at the top of all admin ... would rather not see the update nag on every admin page you visit.
coffee2code.com - Hide WordPress Update Nag in Admin Dashboard | SumTips
Jan 18, 2011 ... WordPress notifies an administrator with a nag in the admin dashboard for core updates and plugin updates. Here's how you can hide those ...
sumtips.com - WordPress › No Update Nag « WordPress Plugins
Jun 27, 2011 ... Version: 1.2.1 Removes the WordPress update nag that appears at the top of all admin pages when a new version of WordPress is released ...
wordpress.org - Hide Wordpress Update Nag Without a Plugin - Effutio - Reviews ...
Feb 18, 2010 ... Yes the annoying update/upgrade notice that appears at the top of the admin screen can be a bit annoying. It can also be quite dangerous.
www.effutio.com