Add links to the codex changelog in update notification strings. props dtoj, see #11739

git-svn-id: https://develop.svn.wordpress.org/trunk@13250 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2010-02-20 12:28:10 +00:00
parent d4854cef04
commit 35eafcfed4
4 changed files with 12 additions and 12 deletions

View File

@@ -130,9 +130,9 @@ function update_nag() {
return false;
if ( current_user_can('update_core') )
$msg = sprintf( __('WordPress %1$s is available! <a href="%2$s">Please update now</a>.'), $cur->current, 'update-core.php' );
$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, 'update-core.php' );
else
$msg = sprintf( __('WordPress %1$s is available! Please notify the site administrator.'), $cur->current );
$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>";
}