Opened 14 years ago
Last modified 6 years ago
#17451 accepted enhancement
Unify plugin update notices and include changelog data
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Upgrade/Install | Keywords: | needs-patch dev-feedback needs-nacin |
Focuses: | Cc: |
Description
Currently the after_plugin_row hook is only used on plugins.php which is used by the Changelogger plugin to show plugin changelogs inline.
If the hook is also added to the bottom of list_plugin_updates in update_core.php then changelogs could also be displayed on that page too.
It's only a single line change so not sure how/if it's worth me attaching a patch for this?
Attachments (2)
Change History (24)
#2
@
14 years ago
I've added a patch with the proposed action names of after_plugin_updates_row and after_theme_updates_row
#3
@
14 years ago
- Summary changed from Add after_plugin_row hook to Updates Page. to Add after_*_updates_row hook to Updates Page.
#5
@
14 years ago
- Milestone changed from Awaiting Review to 3.3
- Owner set to nacin
- Status changed from new to accepted
Good start. Going to try to standardize some things here. Aside from this, the update notices should also appear on plugins.php.
#6
@
14 years ago
Cool.
I am the author of the Changelogger plugin and adding that hook would be a huge improvement for the plugin to show information before an (plugin) update process.
Thanks for suggesting, dempsey!
#7
@
14 years ago
- Summary changed from Add after_*_updates_row hook to Updates Page. to Unify plugin update notices and include changelog data
Shifting this to a task.
Let's plan to pull in the update notices to plugins.php and bring Changelogger into core. Initial patches welcome. The idea would be that we can show a changelog not just before updating, but after as well (probably on the upgrade screen itself). If a changelog was too long, we'd have a way to collapse it. I might end up re-using the plugins list table here.
I'm tempted to split off how we handle DISALLOW_FILE_MODS as well. Right now, that kills update_* caps, but I think a better use case would be this: you want to manage your stuff via Subversion, but wouldn't mind seeing the notices if you can otherwise -- you just don't want to allow the notices to appear. Currently, everything gets blocked out, which might make sense if someone was maintaining an install for a client, but if that were the case, they'd possibly just hide the Plugins screen anyway. DISALLOW_FILE_MODS should handle security implications, not notification ones. Ryan, thoughts?
#9
@
13 years ago
- Milestone changed from 3.3 to Future Release
Punting because we are at freeze and there's not a patch ready for commit. Revisit early 3.4.
Yes, it would be worth attaching a patch, but I don't think naming the hook 'after_plugin_row' is a good idea. That hook is meant for the plugins page and can be used for other things besides showing changelogs.