From 3a340b69ca204a39d118fdba44c993cf0d2db583 Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Fri, 23 Jun 2023 15:01:28 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@56001 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/update-core.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/update-core.php b/src/wp-admin/update-core.php index 3145b50549..7caa1063c1 100644 --- a/src/wp-admin/update-core.php +++ b/src/wp-admin/update-core.php @@ -593,11 +593,13 @@ function list_plugin_updates() { $plugin_data->update->new_version ); - echo ' ' . $details . $compat . $upgrade_notice; + echo ' ' . $details . $compat; if ( in_array( $plugin_file, $auto_updates, true ) ) { echo $auto_update_notice; } + + echo $upgrade_notice; ?>