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

WordPress Trac noreply at wordpress.org
Fri Jun 3 10:04:24 UTC 2016


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

Comment (by ocean90):

 [attachment:13071.2.patch] seems to break custom updaters like
 https://github.com/restrictcontentpro/restrict-content-
 pro/blob/eb2d5e1f26cb17f54506c401835088a05b00dc91/RCP_Plugin_Updater.php#L60-L61.

 Replying to [comment:28 swissspidy]:
 > Could we at perhaps add some JavaScript that increases the counter in
 the admin menu when visiting `update-core.php` for the first time? Or is
 that too much of an edge case scenario?

 A script in the footer should work since it's running after all the update
 checks. That's why it's visible in the toolbar. `update-core.php` wouldn't
 be the only place, we need it for `themes.php` and `plugins.php` too.

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


More information about the wp-trac mailing list