diff --git a/src/wp-admin/css/common.css b/src/wp-admin/css/common.css
index fbd77c29c7..8c9a18eaef 100644
a
|
b
|
th.action-links { |
937 | 937 | box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1); |
938 | 938 | } |
939 | 939 | |
| 940 | .update-nag-core-insecure { |
| 941 | color: #fff; |
| 942 | background-color: #ac1b1b; |
| 943 | border-left-color: #cd5a5a; |
| 944 | font-weight: bold; |
| 945 | } |
| 946 | |
| 947 | .update-nag-core-insecure > p:first-child { |
| 948 | margin-top: 0; |
| 949 | } |
| 950 | |
| 951 | .update-nag-core-insecure > p:last-child { |
| 952 | margin-bottom: 0; |
| 953 | } |
| 954 | |
| 955 | .update-nag-core-insecure a { |
| 956 | color: #fff; |
| 957 | text-decoration: underline; |
| 958 | } |
| 959 | |
940 | 960 | .update-message { |
941 | 961 | color: #000; |
942 | 962 | } |
diff --git a/src/wp-admin/includes/update.php b/src/wp-admin/includes/update.php
index c3f54900e7..818fbc21b5 100644
a
|
b
|
function update_nag() { |
210 | 210 | return false; |
211 | 211 | |
212 | 212 | if ( current_user_can('update_core') ) { |
213 | | $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' ) ); |
| 213 | $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' ) ); |
| 214 | $msg_line2 = sprintf( |
| 215 | /* translators: 1: WordPress version number, 2: Link to update WordPress */ |
| 216 | __( '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>.' ), |
| 217 | get_bloginfo( 'version', 'display' ), |
| 218 | network_admin_url( 'update-core.php' ) |
| 219 | ); |
214 | 220 | } else { |
215 | | $msg = sprintf( __('<a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> is available! Please notify the site administrator.'), $cur->current ); |
| 221 | $msg = sprintf( __('<a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> is available! Please notify the site administrator.'), $cur->current ); |
| 222 | $msg_line2 = sprintf( |
| 223 | /* translators: 1: WordPress version number, 2: Link to update WordPress */ |
| 224 | __( '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>.' ), |
| 225 | get_bloginfo( 'version', 'display' ), |
| 226 | 'https://wordpress.org/download/' |
| 227 | ); |
216 | 228 | } |
217 | | echo "<div class='update-nag'>$msg</div>"; |
| 229 | echo "<div class='update-nag update-nag-core-insecure'><p>$msg</p><p>$msg_line2</p></div>"; |
218 | 230 | } |
219 | 231 | add_action( 'admin_notices', 'update_nag', 3 ); |
220 | 232 | add_action( 'network_admin_notices', 'update_nag', 3 ); |