diff --git a/src/wp-admin/css/colors-classic.css b/src/wp-admin/css/colors-classic.css
index 32bc6f4bf4..c481fdc621 100644
|
a
|
b
|
table.widefat span.spam a, |
| 734 | 734 | color: #555; |
| 735 | 735 | } |
| 736 | 736 | |
| | 737 | .update-nag-core-insecure { |
| | 738 | color: #fff; |
| | 739 | background-color: #ac1b1b; |
| | 740 | border-color: #cd5a5a; |
| | 741 | } |
| | 742 | |
| | 743 | .update-nag-core-insecure a { |
| | 744 | color: #fff; |
| | 745 | } |
| | 746 | |
| 737 | 747 | #screen-meta { |
| 738 | 748 | background-color: #eff8ff; |
| 739 | 749 | border-color: #d1e5ee; |
diff --git a/src/wp-admin/css/colors-fresh.css b/src/wp-admin/css/colors-fresh.css
index 547d6f4173..2fd7f20be8 100644
|
a
|
b
|
table.widefat span.spam a, |
| 732 | 732 | color: #555; |
| 733 | 733 | } |
| 734 | 734 | |
| | 735 | .update-nag-core-insecure { |
| | 736 | color: #fff; |
| | 737 | background-color: #ac1b1b; |
| | 738 | border-color: #cd5a5a; |
| | 739 | } |
| | 740 | |
| | 741 | .update-nag-core-insecure a { |
| | 742 | color: #fff; |
| | 743 | } |
| | 744 | |
| 735 | 745 | #screen-meta { |
| 736 | 746 | background-color: #f1f1f1; |
| 737 | 747 | border-color: #ccc; |
diff --git a/src/wp-admin/css/wp-admin.css b/src/wp-admin/css/wp-admin.css
index 2f5b5c7fcc..59ed455393 100644
|
a
|
b
|
th.action-links { |
| 1123 | 1123 | border-bottom-left-radius: 3px; |
| 1124 | 1124 | } |
| 1125 | 1125 | |
| | 1126 | .update-nag-core-insecure { |
| | 1127 | color: #fff; |
| | 1128 | background-color: #ac1b1b; |
| | 1129 | border-color: #cd5a5a; |
| | 1130 | font-weight: bold; |
| | 1131 | } |
| | 1132 | |
| | 1133 | .update-nag-core-insecure > p { |
| | 1134 | margin-left: 1em; |
| | 1135 | margin-right: 1em; |
| | 1136 | } |
| | 1137 | |
| | 1138 | .update-nag-core-insecure > p:first-child { |
| | 1139 | margin-top: 0; |
| | 1140 | clear: right; /* Screen options, help tabs */ |
| | 1141 | } |
| | 1142 | |
| | 1143 | .update-nag-core-insecure > p:last-child { |
| | 1144 | margin-bottom: 0; |
| | 1145 | } |
| | 1146 | |
| | 1147 | .update-nag-core-insecure a { |
| | 1148 | color: #fff; |
| | 1149 | } |
| | 1150 | |
| 1126 | 1151 | .plugins .plugin-update { |
| 1127 | 1152 | padding: 0; |
| 1128 | 1153 | } |
diff --git a/src/wp-admin/includes/update.php b/src/wp-admin/includes/update.php
index 5ee195a79f..c50e033d10 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 ); |