[wp-trac] [WordPress Trac] #59320: Fatal error while processing failed plugin upgrade

WordPress Trac noreply at wordpress.org
Thu Sep 14 10:41:39 UTC 2023


#59320: Fatal error while processing failed plugin upgrade
------------------------------------------+----------------------
 Reporter:  akihiroharai                  |       Owner:  costdev
     Type:  defect (bug)                  |      Status:  closed
 Priority:  normal                        |   Milestone:  6.3.2
Component:  Upgrade/Install               |     Version:  6.3
 Severity:  minor                         |  Resolution:  fixed
 Keywords:  has-patch commit fixed-major  |     Focuses:
------------------------------------------+----------------------
Changes (by costdev):

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


Comment:

 In [changeset:"56582" 56582]:
 {{{
 #!CommitTicketReference repository="" revision="56582"
 Upgrade/Install: Fix broken `sprintf()` call when deleting a backup.

 In `WP_Upgrader::delete_temp_backup()`, a malformed `sprintf()` call did
 not pass the value, triggering a Warning in PHP 7 and a Fatal Error in PHP
 8.

 This fixes the malformed `sprintf()` call by correctly passing the value.

 Follow-up to [55720].

 Props akihiroharai, afragen.
 Merges [56550] to the 6.3 branch.
 Fixes #59320.
 }}}

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


More information about the wp-trac mailing list