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.



Built from https://develop.svn.wordpress.org/trunk@56001


git-svn-id: http://core.svn.wordpress.org/trunk@55513 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
audrasjb 2023-06-23 15:03:22 +00:00
parent f50a00bce4
commit 73922adc1e
2 changed files with 4 additions and 2 deletions

View File

@ -593,11 +593,13 @@ function list_plugin_updates() {
$plugin_data->update->new_version $plugin_data->update->new_version
); );
echo ' ' . $details . $compat . $upgrade_notice; echo ' ' . $details . $compat;
if ( in_array( $plugin_file, $auto_updates, true ) ) { if ( in_array( $plugin_file, $auto_updates, true ) ) {
echo $auto_update_notice; echo $auto_update_notice;
} }
echo $upgrade_notice;
?> ?>
</p></td> </p></td>
</tr> </tr>

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.3-alpha-56000'; $wp_version = '6.3-alpha-56001';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.