Make WordPress Core

Changeset 60336


Ignore:
Timestamp:
06/22/2025 10:30:45 PM (9 months ago)
Author:
johnbillion
Message:

Security: Replace update nag to indicate end of support for 4.4.

Replaces the update nag to indicate that users need to update to a newer version of WordPress in order to continue receiving security updates.

Props audrasjb, peterwilsoncc, SirLouen

See #63595

Location:
branches/4.4/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.4/src/wp-admin/css/common.css

    r35763 r60336  
    14341434    -webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1);
    14351435    box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1);
     1436}
     1437
     1438.update-nag-core-insecure {
     1439    color: #fff;
     1440    background-color: #ac1b1b;
     1441    border-left-color: #cd5a5a;
     1442    font-weight: bold;
     1443}
     1444
     1445.update-nag-core-insecure > p:first-child {
     1446    margin-top: 0;
     1447}
     1448
     1449.update-nag-core-insecure > p:last-child {
     1450    margin-bottom: 0;
     1451}
     1452
     1453.update-nag-core-insecure a {
     1454    color: #fff;
     1455    text-decoration: underline;
    14361456}
    14371457
  • branches/4.4/src/wp-admin/includes/update.php

    r34912 r60336  
    233233    if ( current_user_can('update_core') ) {
    234234        $msg = sprintf( __('<a href="https://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' ) );
     235
     236        $msg_line2 = sprintf(
     237            /* translators: 1: WordPress version number, 2: Link to update WordPress */
     238            __( '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>.' ),
     239            get_bloginfo( 'version', 'display' ),
     240            network_admin_url( 'update-core.php' )
     241        );
    235242    } else {
    236243        $msg = sprintf( __('<a href="https://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> is available! Please notify the site administrator.'), $cur->current );
    237     }
    238     echo "<div class='update-nag'>$msg</div>";
     244
     245        $msg_line2 = sprintf(
     246            /* translators: 1: WordPress version number, 2: Link to update WordPress */
     247            __( '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>.' ),
     248            get_bloginfo( 'version', 'display' ),
     249            __( 'https://wordpress.org/download/' )
     250        );
     251    }
     252    echo "<div class='update-nag update-nag-core-insecure'><p>$msg</p><p>$msg_line2</p></div>";
    239253}
    240254
Note: See TracChangeset for help on using the changeset viewer.