[wp-trac] [WordPress Trac] #53002: Plugin_Upgrader's bulk_upgrade returns incorrect results when an error is encountered

WordPress Trac noreply at wordpress.org
Mon Aug 2 20:54:59 UTC 2021


#53002: Plugin_Upgrader's bulk_upgrade returns incorrect results when an error is
encountered
------------------------------+-----------------------------
 Reporter:  pwtyler           |       Owner:  SergeyBiryukov
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  5.9
Component:  Upgrade/Install   |     Version:  2.9
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"51528" 51528]:
 {{{
 #!CommitTicketReference repository="" revision="51528"
 Upgrade/Install: Store correct result when bulk updating plugins or
 themes.

 This ensures that when multiple plugins or themes are updated and one
 succeeds and another fails, the error is reported accordingly.

 Previously, both updates would end up treated as a success, due to
 `$this->result` containing the result of the previous operation and not
 the current one.

 Follow-up to [12097].

 Props pwtyler, afragen.
 Fixes #53002.
 }}}

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


More information about the wp-trac mailing list