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
This commit is contained in:
Jb Audras 2023-06-23 15:01:28 +00:00
parent d51e1e66d0
commit 3a340b69ca

View File

@ -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;
?>
</p></td>
</tr>