Ticket #7420 (closed enhancement: worksforme)
There should be a "Go back" link after a plugin is automatically upgraded
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | |
| Component: | Administration | Version: | 2.6 |
| Severity: | trivial | Keywords: | has-patch tested 2nd-opinion |
| Cc: |
Description
When a plugin is automatically upgraded from Wordpress admin page("update.php?action=upgrade-plugin"), the result page shows the summary of the plugin upgradation process after which the user needs to either use the back button of the browser or click the "Plugins" link at the top-right corner. It would be nice to have a "Go back to plugins page" or some such link on the "Upgrade Plugin" page itself.
wp-admin/update.php:
else {
//Result is the new plugin file relative to WP_PLUGIN_DIR
show_message( __('Plugin upgraded successfully') );
if( $result && $was_activated ){
show_message(__('Attempting reactivation of the plugin'));
echo '<iframe style="border:0" width="100%" height="170px" src="' .
wp_nonce_url('update.php?action=activate-plugin&plugin=' .
$result, 'activate-plugin_' . $result) .'"></iframe>';
}
'''//ADD A LINK TO PLUGIN ADMIN PAGE HERE???'''
}
echo '</div>';
Attachments
Change History
I just went to implement this, And theres a slight issue:
The Iframe in which the "Plugin reactivated successfully." is shown is 170px high, In order to allow for PHP Fatal error messages to come through (Max height is about 150px for those).
Adding links below this results in a fair bit of whitespace after the reactivation line before the action links.
Thoughts?
One option would be to have the links in the iframe itself (But that has other issues which i want to avoid), Another would be a floating div.. which is ugly and has its own issues.. Or we cab just live with the extra whitespace :)
The whitespace doesn't look that bad. Can't really add it to the iframe because it wouldn't then show if the plugin wasn't already activated.
- Milestone changed from 2.6.1 to 2.7
Should be part of trunk first before backporting to 2.6 branch.
comment:6
tabreziqbal — 4 years ago
- Owner changed from anonymous to tabreziqbal
- Status changed from new to assigned
comment:8
caesarsgrunt — 4 years ago
Might be nice if it automatically returned upon success, only showing the log page on error.
A notice ('Updated Preferences' type) could be shown at the top of the plugin page after an upgrade. (Something like "Plugin Name successfully updated from version old to version new".)
comment:10
matt — 4 years ago
- Status changed from new to closed
- Resolution set to worksforme
Looks like this has been fixed already.


There is always the admin menu link across the top of the page but I tend to agree that it would be more user friendly if there was a return link at the end of the process (even if it has failed)