[wp-trac] [WordPress Trac] #51081: Fatal Error - Undefined get_page_templates() in Customizer

WordPress Trac noreply at wordpress.org
Thu Aug 27 21:06:11 UTC 2020


#51081: Fatal Error - Undefined get_page_templates() in Customizer
--------------------------+---------------------------------------
 Reporter:  Howdy_McGee   |       Owner:  SergeyBiryukov
     Type:  defect (bug)  |      Status:  accepted
 Priority:  normal        |   Milestone:  5.5.1
Component:  Customize     |     Version:  5.5
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  administration, template
--------------------------+---------------------------------------

Comment (by garrett-eclipse):

 Replying to [comment:10 audrasjb]:
 > This patch is a proposal for the @since change. Not 100% sure about the
 best phrasing.

 Thanks @audrasjb maybe we can go with;
 "Now also applied in the Customizer context. If any admin functions are
 used within the filter their existence should be checked with
 `function_exists` before use."

 Thoughts

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


More information about the wp-trac mailing list