[wp-trac] [WordPress Trac] #13071: Update bubble appears only at the second load

WordPress Trac noreply at wordpress.org
Mon Oct 3 19:46:09 UTC 2016


#13071: Update bubble appears only at the second load
-------------------------------------------------+-------------------------
 Reporter:  ocean90                              |       Owner:  swissspidy
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  4.7
Component:  Upgrade/Install                      |     Version:  3.0
 Severity:  normal                               |  Resolution:
 Keywords:  shiny-updates has-patch needs-       |     Focuses:
  testing                                        |  administration
-------------------------------------------------+-------------------------

Comment (by swissspidy):

 [attachment:13071.2.diff] tries to reuse `_wpUpdatesItemCounts` for
 passing the update counts.

 I am not sure about the similarities between `refreshCount()` and
 `deletePluginSuccess()`. The former refreshes the update counts everywhere
 on the screen, including the tabs on the plugin list table, while the
 latter only adjusts these tabs — and delegates updating the 'Update
 Available' tab to `refreshCount()`. Not much I'd change there right now.

 If anything, I'd want to get rid of the duplicate code inside
 `deletePluginSuccess()`, but that's something for a new ticket.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/13071#comment:37>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list