Make WordPress Core

Changeset 56001


Ignore:
Timestamp:
06/23/2023 03:01:28 PM (11 months ago)
Author:
audrasjb
Message:

Upgrade/Install: Move location of $upgrade_notice for better consistency.

Since the $auto_upgrade_notice has been added to the update-core.php table listing if an $upgrade_notice is present by virtue of the readme.txt
containing data in the == Upgrade Notice == section, this text will appear in between the compatibility information and the auto update information.

This changeset provides a more consistent appearance in the interface.

Props afragen, costdev, zunaid321.
Fixes #57939.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/update-core.php

    r55954 r56001  
    594594            );
    595595
    596             echo ' ' . $details . $compat . $upgrade_notice;
     596            echo ' ' . $details . $compat;
    597597
    598598            if ( in_array( $plugin_file, $auto_updates, true ) ) {
    599599                echo $auto_update_notice;
    600600            }
     601
     602            echo $upgrade_notice;
    601603            ?>
    602604        </p></td>
Note: See TracChangeset for help on using the changeset viewer.