The Homepage Settings section on the customizer uses `WP_Customize_Manager::has_published_pages()` as `active_callback`. [53057] introduced an error on the logical check when the queried page is not a top-level page, which leads `has_published_pages` to incorrectly return an empty array. This changeset fixes the issue by adding `'hierarchical' => 0` to `get_pages()` arguments. Follow-up to [53057]. Props felipelavinz, dlh, costdev. Fixes #57198. Built from https://develop.svn.wordpress.org/trunk@54935 git-svn-id: http://core.svn.wordpress.org/trunk@54487 1a063a9b-81f0-0310-95a4-ce76da25c4cd
197 KiB
197 KiB