[wp-trac] [WordPress Trac] #51081: Fatal Error - Undefined get_page_templates() in Customizer
WordPress Trac
noreply at wordpress.org
Fri Aug 21 01:53:26 UTC 2020
#51081: Fatal Error - Undefined get_page_templates() in Customizer
---------------------------+---------------------------------------
Reporter: Howdy_McGee | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.5.1
Component: Customize | Version: 5.5
Severity: normal | Resolution:
Keywords: needs-testing | Focuses: administration, template
---------------------------+---------------------------------------
Comment (by dlh):
@Howdy_McGee I'm sorry to hear that this change to the Customizer caused
an issue on your site. It probably could have used a stronger callout in a
5.5 dev note, and it's on me for not having thought of it.
Still, I'm inclined to agree with Sergey that it's not going to be
feasible to try to load the same admin context in the Customizer that
`get_post_states()` ran in previously. Adding the `function_exists()`
check might be the best way to go. A `@since` note in the filter docs
might also be appropriate, as suggested.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51081#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list