[wp-trac] [WordPress Trac] #29527: Number of available updates showing as NaN after completing updates
WordPress Trac
noreply at wordpress.org
Tue Oct 14 21:32:03 UTC 2014
#29527: Number of available updates showing as NaN after completing updates
-------------------------------+-----------------------------
Reporter: circuuz | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone:
Component: Plugins | Version: 4.0
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses: administration
-------------------------------+-----------------------------
Comment (by jdgrimes):
[attachment:29527.diff] checks if the count is `NaN` before updating it.
I'm not sure why this happens, but I have a hunch that it is caused by the
update count being empty when the page is loaded. That could happen if the
updates transients were to get flushed, and the update APIs didn't respond
with any updates. In my case, I think that might be happening because I
was testing a custom API for retrieving updates for a plugin. I enabled it
to get the update, but I disabled it again before running the update.
So, it's possible the only way that a user could cause this is if they are
hacking around with stuff. On the other hand it's a rather trivial patch.
I'll leave the decision on whether it's needed up to y'all. :-)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29527#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list