[wp-trac] [WordPress Trac] #57999: Don't show error message when there is nothing to update

WordPress Trac noreply at wordpress.org
Thu Apr 27 00:51:44 UTC 2023


#57999: Don't show error message when there is nothing to update
-------------------------------------+-------------------------------------
 Reporter:  Presskopp                |       Owner:  pbiron
     Type:  defect (bug)             |      Status:  assigned
 Priority:  normal                   |   Milestone:  6.3
Component:  Upgrade/Install          |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  good-first-bug has-      |     Focuses:  administration, ui-
  patch                              |  copy
-------------------------------------+-------------------------------------

Comment (by pbiron):

 One downside of the approach in [attachment:"57999.1.diff"] and
 [attachment:"57999.diff"] is the can result in
 `get_{theme|plugin}_updates()` being called twice on the same page load of
 `update-core.php` (this was pointed out to me by @costdev.

 I've looked for a way to prevent those multiple calls, but as far as I can
 tell, that would take a major refactoring of the flow in `update-core.php`
 and I don't think that's worth it.  If someone else thinks they know an
 easy to do so, then I'm all ears.

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


More information about the wp-trac mailing list