[wp-trac] [WordPress Trac] #59584: Deactivate older versions of Gutenberg plugin when upgrading to WP 6.4

WordPress Trac noreply at wordpress.org
Tue Oct 10 14:51:29 UTC 2023


#59584: Deactivate older versions of Gutenberg plugin when upgrading to WP 6.4
-------------------------------------------------+-------------------------
 Reporter:  hellofromTonya                       |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  6.4
Component:  Upgrade/Install                      |     Version:  trunk
 Severity:  normal                               |  Resolution:
 Keywords:  needs-testing has-patch has-         |     Focuses:
  testing-info                                   |
-------------------------------------------------+-------------------------

Comment (by hellofromTonya):

 = Test Instructions

 == Steps to Reproduce

 * Step 1: Install WP 6.3.1
   * Using WP-CLI
 {{{
 wp core update --version=6.3.1 --force
 }}}
   * Using the [https://wordpress.org/plugins/core-rollback/ Core Rollback
 plugin]

 * Step 2: Install Gutenberg v 16.4
   * Using WP-CLI
 {{{
 wp plugin install gutenberg --version=16.4.0 --force
 }}}
   * Using the [https://wordpress.org/plugins/gutenberg/advanced/ wp.org
 plugin page]:
     * Go here https://wordpress.org/plugins/gutenberg/advanced/
     * Scroll down to the version select field
     * Select `16.4.0`
     * Click/trigger the `Download` button
     * Install zip file via the upload UI in your local test site: Plugins
 > Add New > Upload Plugin

 * Step 3: Activate Gutenberg plugin
 * Step 4: Update to WP 6.4 Beta 2+
   * Using WordPress Updates UI
     * In the admin area, go to Dashboard > Updates
     * Click/trigger the `Update to version 6.4 Beta 2` button.
     * Update starts and then fails. 🐞 Bug occurs with a fatal error.
 * Step 5: Cleanup by deleting the Gutenberg plugin folder.

 Notes:
 * Repeat the tests using any Gutenberg version less than 16.4. Same 🐞
 fatal error.
 * Repeat the tests using Gutenberg version 16.5 or newer. ✅ Update
 succeeds with no fatal error.

 == Steps to Prepare WP zip file with fix:

 * Step 1: Download WP 6.4 Beta 2 zip file
 [https://wordpress.org/news/2023/10/wordpress-6-4-beta-2/ found in the
 announcement post].
 * Step 2: Unzip the download file.
 * Step 3: Merge the changes from the PR https://github.com/WordPress
 /wordpress-develop/pull/5452 into it.
 * Step 4: Rezip the folder, noting the location and name of the modified
 zip file.

 == Steps to Test the Fix

 See how to do each step above.

 * Step 1: Install WP 6.3.1.
 * Step 2: Install Gutenberg v 16.4.
 * Step 3: Activate Gutenberg v 16.4.
 * Step 4: Update to WP 6.4 Beta 2 using the zip file
 {{{
 wp core update --version=6.4 --force ../path/to/wordpress.zip
 }}}
 * Step 5: Go to the Plugins UI.
   * Expected: Gutenberg plugin is deactivate ✅
   * Expected: No fatal error ✅

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


More information about the wp-trac mailing list