[wp-trac] [WordPress Trac] #57198: WP_Customize_Manager::has_published_pages() fails when queried page is not top-level

WordPress Trac noreply at wordpress.org
Sat Nov 26 06:41:39 UTC 2022


#57198: WP_Customize_Manager::has_published_pages() fails when queried page is not
top-level
----------------------------------------+---------------------
 Reporter:  felipelavinz                |       Owner:  (none)
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  6.2
Component:  Customize                   |     Version:  6.0
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch has-testing-info  |     Focuses:
----------------------------------------+---------------------
Changes (by costdev):

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


Comment:

 == Test Report

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

 === Steps to Reproduce or Test
 1. Switch to the Twenty Twenty theme.
 2. Publish the draft "Privacy Policy" page, and make it a child of "Sample
 Page".
 3. 🐞 Navigate to `Appearance > Customize`.

 === Expected Results
 When reproducing a bug:
 - ❌ The "Homepage Settings" section should be missing.

 When testing a patch to validate it works as expected:
 - ✅ The "Homepage Settings" section should be available.

 === Environment
 * Server: Apache (Linux)
 * WordPress: 6.1.1
 * Browser: Chrome 107.0.0.0
 * OS: Windows 10
 * Theme: Twenty Twenty
 * Plugins: None activated

 === Actual Results
 When reproducing a bug/defect:
 - ❌ Issue reproduced. The "Homepage Settings" section is missing.

 When testing the bugfix patch:
 - ✅ Patch resolves the issue. The "Homepage Settings" section is
 available.

 === Notes
 - The patch works as expected. Adding for `commit` consideration.

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


More information about the wp-trac mailing list