Use a class for update-nag, as especially in MS we're sometimes hooking in more than one per page.

git-svn-id: https://develop.svn.wordpress.org/trunk@14319 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2010-04-30 15:37:46 +00:00
parent 26f7f2be9d
commit 8722ccc178
9 changed files with 15 additions and 15 deletions

View File

@@ -134,7 +134,7 @@ function update_nag() {
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 id='update-nag'>$msg</div>";
echo "<div class='update-nag'>$msg</div>";
}
add_action( 'admin_notices', 'update_nag', 3 );
@@ -260,7 +260,7 @@ function maintenance_nag() {
else
$msg = __('An automated WordPress update has failed to complete! Please notify the site administrator.');
echo "<div id='update-nag'>$msg</div>";
echo "<div class='update-nag'>$msg</div>";
}
add_action( 'admin_notices', 'maintenance_nag' );