Make WordPress Core

Changeset 60338


Ignore:
Timestamp:
06/22/2025 10:34:56 PM (10 months ago)
Author:
johnbillion
Message:

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

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.6/src/wp-admin
Files:
2 edited

Legend:

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

    r38238 r60338  
    14881488}
    14891489
     1490.update-nag-core-insecure {
     1491    color: #fff;
     1492    background-color: #ac1b1b;
     1493    border-left-color: #cd5a5a;
     1494    font-weight: bold;
     1495}
     1496
     1497.update-nag-core-insecure > p:first-child {
     1498    margin-top: 0;
     1499}
     1500
     1501.update-nag-core-insecure > p:last-child {
     1502    margin-bottom: 0;
     1503}
     1504
     1505.update-nag-core-insecure a {
     1506    color: #fff;
     1507    text-decoration: underline;
     1508}
     1509
     1510.update-message {
     1511    color: #000;
     1512}
     1513
    14901514ul#dismissed-updates {
    14911515    display: none;
  • branches/4.6/src/wp-admin/includes/update.php

    r38241 r60338  
    244244            esc_attr__( 'Please update WordPress now' )
    245245        );
     246
     247        $msg_line2 = sprintf(
     248            /* translators: 1: WordPress version number, 2: Link to update WordPress */
     249            __( '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>.' ),
     250            get_bloginfo( 'version', 'display' ),
     251            network_admin_url( 'update-core.php' )
     252        );
    246253    } else {
    247254        $msg = sprintf(
     
    255262            $cur->current
    256263        );
    257     }
    258     echo "<div class='update-nag'>$msg</div>";
     264
     265        $msg_line2 = sprintf(
     266            /* translators: 1: WordPress version number, 2: Link to update WordPress */
     267            __( '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>.' ),
     268            get_bloginfo( 'version', 'display' ),
     269            __( 'https://wordpress.org/download/' )
     270        );
     271    }
     272    echo "<div class='update-nag update-nag-core-insecure'><p>$msg</p><p>$msg_line2</p></div>";
    259273}
    260274
Note: See TracChangeset for help on using the changeset viewer.