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

WordPress Trac noreply at wordpress.org
Tue Sep 27 12:22:25 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):

 @obenland I know you're busy with the plugin directory, but maybe you've
 got a few minutes to test the patch? You know the code quite well.

 Basically it separates the update counter and actually updating the HTML
 across the site. It makes the code easier to understand. After that,
 `wp_print_update_count_for_js()` is where the magic happens. It updates
 the counter and forces a refresh. That way, the update bubble always shows
 the correct when visiting plugins.php, themes.php or update-core.php.

 Note that I haven't added a docblock yet and perhaps the function name can
 be improved.

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


More information about the wp-trac mailing list