diff --git a/src/wp-admin/css/common.css b/src/wp-admin/css/common.css
index a995ee476c..ebd137b1ce 100644
a
|
b
|
th.action-links { |
1266 | 1266 | box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1); |
1267 | 1267 | } |
1268 | 1268 | |
| 1269 | .update-nag-core-insecure { |
| 1270 | color: #fff; |
| 1271 | background-color: #ac1b1b; |
| 1272 | border-left-color: #cd5a5a; |
| 1273 | font-weight: bold; |
| 1274 | } |
| 1275 | |
| 1276 | .update-nag-core-insecure > p:first-child { |
| 1277 | margin-top: 0; |
| 1278 | } |
| 1279 | |
| 1280 | .update-nag-core-insecure > p:last-child { |
| 1281 | margin-bottom: 0; |
| 1282 | } |
| 1283 | |
| 1284 | .update-nag-core-insecure a { |
| 1285 | color: #fff; |
| 1286 | text-decoration: underline; |
| 1287 | } |
| 1288 | |
1269 | 1289 | .update-message { |
1270 | 1290 | color: #000; |
1271 | 1291 | } |
diff --git a/src/wp-admin/includes/update.php b/src/wp-admin/includes/update.php
index d3b56db37f..d48c6ed0d1 100644
a
|
b
|
function update_nag() { |
205 | 205 | return false; |
206 | 206 | |
207 | 207 | if ( current_user_can('update_core') ) { |
208 | | $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' ) ); |
| 208 | $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' ) ); |
| 209 | $msg_line2 = sprintf( |
| 210 | /* translators: 1: WordPress version number, 2: Link to update WordPress */ |
| 211 | __( 'Important! Your version of WordPress (%1$s) is no longer supported, you will not receive any security updates for your website. To keep your site secure, please <a href="%2$s">update to the latest version of WordPress</a>.' ), |
| 212 | get_bloginfo( 'version', 'display' ), |
| 213 | network_admin_url( 'update-core.php' ) |
| 214 | ); |
209 | 215 | } else { |
210 | | $msg = sprintf( __('<a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> is available! Please notify the site administrator.'), $cur->current ); |
| 216 | $msg = sprintf( __('<a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> is available! Please notify the site administrator.'), $cur->current ); |
| 217 | $msg_line2 = sprintf( |
| 218 | /* translators: 1: WordPress version number, 2: Link to update WordPress */ |
| 219 | __( 'Important! Your version of WordPress (%1$s) is no longer supported, you will not receive any security updates for your website. To keep your site secure, please <a href="%2$s">update to the latest version of WordPress</a>.' ), |
| 220 | get_bloginfo( 'version', 'display' ), |
| 221 | 'https://wordpress.org/download/' |
| 222 | ); |
211 | 223 | } |
212 | | echo "<div class='update-nag'>$msg</div>"; |
| 224 | echo "<div class='update-nag update-nag-core-insecure'><p>$msg</p><p>$msg_line2</p></div>"; |
213 | 225 | } |
214 | 226 | add_action( 'admin_notices', 'update_nag', 3 ); |
215 | 227 | add_action( 'network_admin_notices', 'update_nag', 3 ); |