[wp-trac] [WordPress Trac] #64231: Customizer fails to save when switching themes due to an orphaned setting left over from a previously active plugin

WordPress Trac noreply at wordpress.org
Thu Dec 11 12:54:31 UTC 2025


#64231: Customizer fails to save when switching themes due to an orphaned setting
left over from a previously active plugin
-------------------------------------+--------------------------
 Reporter:  alessandrolioce          |       Owner:  westonruter
     Type:  defect (bug)             |      Status:  reviewing
 Priority:  normal                   |   Milestone:  7.0
Component:  Customize                |     Version:  6.8.3
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch has-test-info  |     Focuses:
-------------------------------------+--------------------------

Comment (by r1k0):

 == Test Report
 === Description
 This report validates whether the indicated patch works as expected.

 Patch tested: [https://github.com/WordPress/wordpress-develop/pull/10503]

 === Environment
 - WordPress: 6.9
 - PHP: 8.3.23
 - Server: Apache/2.4.43 (Unix)
 - Database: mysqli (Server: 8.0.35 / Client: mysqlnd 8.3.23)
 - Browser: Firefox 145.0
 - OS: Ubuntu
 - Theme: Twenty Twenty 3.0
 - MU Plugins: None activated
 - Plugins:
   * Adds a testing option in customizer
   * Test Reports 1.2.1

 === Actual Results
 1.  ✅ Issue resolved with patch.
 2.  Orphaned settings are ignored when switching to a different theme
 through live preview.
 3.  Theme is activated successfully and no error appears in the
 customizer.
 4.  The admin-ajax.php POST request returns:

 {{{
 {
   "success": true,
   "data": {
     "setting_validities": {
       "old_sidebars_widgets_data": true
     },
     "changeset_status": "publish",
     "next_changeset_uuid": "d93bc257-c0ae-4969-84bd-d22f540c0e43"
   }
 }
 }}}



 === Additional Notes
 - Used: Twenty Nineteen 3.2, to switch.

 === Supplemental Artifacts
 Before:

 [[Image(https://i.ibb.co/b5cj1fXt/before-orphaned-setting.png)]]

 After:

 [[Image(https://i.ibb.co/ZzPJ5X76/after-orphaned-setting.png)]]

 [[Image(https://i.ibb.co/6J8SbDMK/orphaned-setting-ignored.gif)]]

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


More information about the wp-trac mailing list