Opened 13 years ago
Closed 12 years ago
#17838 closed enhancement (fixed)
Allow plugins to change update count
Reported by: | usermrpapa | Owned by: | nacin |
---|---|---|---|
Milestone: | 3.5 | Priority: | normal |
Severity: | normal | Version: | 3.2 |
Component: | Administration | Keywords: | has-patch |
Focuses: | Cc: |
Description
currently, plugins can easily affect the core updates screen and add additional elements to update for their plugin.
however, the total update count in the admin left side nav menu is hardcoded to only include wp core, theme and plugin available updates. So when you visit the core update screen, the count may not agree with the available updates since plugins can add their own.
a simple filter on the count will allow plugins to have their updates show in the count.
patch attached against R18320
Attachments (7)
Change History (21)
#4
@
13 years ago
its plugins for a wp plugin. and themes for a wp plugin. ;)
our plugin supports plugins for it and themes as well. and the plugins and themes (sub plugins and themes??) are not stored/resident in the wp plugins and themes directories...
so we have extended the upgrader classes for our upgrade 'types'. if we put them in the global transients, the wp upgrader fails because of the storage locations. So we have our own upgrade transients.
perhaps I am missing something - if so, please explain further...
I realize its too late in the 3.2 cycle.
#6
@
13 years ago
patch refreshed for [18468] that consolidated update counts...
since the api allows plugins to create new update sections, would be nice to affect the count too...
#9
@
13 years ago
refreshed patch for wp 3.4... hoping to get it in this this version so plugins can affect the update counts...
#13
@
12 years ago
- Milestone changed from Awaiting Review to 3.5
Perhaps it would make sense to filter the whole returned result (17838.2.patch).
A common method plugins have been doing, is to simply inject their updates into the global transient, as a result, the counts are correct (Assuming it's a plugin or theme update you're talking about here) and in most cases, it results in less code for the author to write (Since core picks up the update like it's one from WordPress.org and handles it correctly), and a more seemless experience for the user.