[wp-trac] [WordPress Trac] #50849: Incorrect action passed to hooks when updating plugin/theme by uploading ZIP file

WordPress Trac noreply at wordpress.org
Fri Jun 27 22:42:02 UTC 2025


#50849: Incorrect action passed to hooks when updating plugin/theme by uploading
ZIP file
-------------------------------------+-----------------------------
 Reporter:  desrosj                  |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Future Release
Component:  Upgrade/Install          |     Version:  5.5
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch has-test-info  |     Focuses:
-------------------------------------+-----------------------------
Changes (by SirLouen):

 * keywords:  has-patch needs-testing => has-patch has-test-info


Comment:

 == Combined Bug Reproduction and Patch Test Report
 === Description
 ✅ This report validates that the indicated patch works as expected.

 Patch tested: https://github.com/WordPress/wordpress-
 develop/pull/9104.diff

 === Environment
 - WordPress: 6.9-alpha-60093-src
 - PHP: 8.2.28
 - Server: nginx/1.29.0
 - Database: mysqli (Server: 8.4.5 / Client: mysqlnd 8.2.28)
 - Browser: Chrome 137.0.0.0
 - OS: Windows 10/11
 - Theme: Twenty Fifteen 4.0
 - MU Plugins: None activated
 - Plugins:
   * Test Reports 1.2.0

 === Testing Instructions
 - Mainly Using [https://core.trac.wordpress.org/ticket/50849#comment:23
 these instructions] with a Theme and a Plugin
 - 🐞 Results logged displayed in the Artifacts sections below

 === Actual Results
 1.  ✅ Issue resolved with patch, results below

 === Additional Notes
 1. Another refresh was required.
 2. Added @desrosj [https://github.com/WordPress/wordpress-
 develop/pull/684#pullrequestreview-681758434 review in PR 684]
 3. Patch Ready to launch.

 === Supplemental Artifacts

 Results:

 ==== Update plugin:

 Pre Patch:
 {{{
 [27-Jun-2025 22:19:10 UTC] Array
 (
     [type] => plugin
     [action] => install
 )

 [27-Jun-2025 22:19:13 UTC] Array
 (
     [type] => plugin
     [action] => install
 )
 }}}

 After Patch:
 {{{
 [27-Jun-2025 22:10:11 UTC] Array
 (
     [type] => plugin
     [action] => update
 )
 }}}

 ==== Downgrade plugin

 Pre Patch:
 {{{
 [27-Jun-2025 22:19:53 UTC] Array
 (
     [type] => plugin
     [action] => install
 )

 [27-Jun-2025 22:19:56 UTC] Array
 (
     [type] => plugin
     [action] => install
 )
 }}}

 After Patch:
 {{{
 [27-Jun-2025 22:12:02 UTC] Array
 (
     [type] => plugin
     [action] => downgrade
 )
 }}}

 ==== Upgrade theme

 Pre Patch:
 {{{
 [27-Jun-2025 22:16:52 UTC] Array
 (
     [type] => theme
     [action] => install
 )

 [27-Jun-2025 22:16:57 UTC] Array
 (
     [type] => theme
     [action] => install
 )
 }}}

 After Patch:
 {{{
 [27-Jun-2025 22:13:56 UTC] Array
 (
     [type] => theme
     [action] => update
 )
 }}}

 ==== Downgrade theme

 Pre Patch:
 {{{
 [27-Jun-2025 22:17:45 UTC] Array
 (
     [type] => theme
     [action] => install
 )

 [27-Jun-2025 22:17:47 UTC] Array
 (
     [type] => theme
     [action] => install
 )
 }}}

 After Patch:
 {{{
 [27-Jun-2025 22:15:13 UTC] Array
 (
     [type] => theme
     [action] => downgrade
 )
 }}}

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


More information about the wp-trac mailing list