[wp-trac] [WordPress Trac] #54905: PHP notice while accessing Customizer
WordPress Trac
noreply at wordpress.org
Wed May 11 17:16:46 UTC 2022
#54905: PHP notice while accessing Customizer
-------------------------------------------------+-------------------------
Reporter: Boniu91 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.1
Component: Customize | Version:
Severity: normal | Resolution:
Keywords: has-testing-info has-screenshots | Focuses:
has-patch dev-feedback |
-------------------------------------------------+-------------------------
Comment (by pbiron):
@hellofromTonya I haven't had a chance to look further into this since it
was originally reported, but here are some thoughts I
[https://wordpress.slack.com/archives/C02RQBWTW/p1643144141220900?thread_ts=1643141733.089300&cid=C02RQBWTW
shared in slack] at the time:
> I'm not really familiar with most the code for
[https://developer.wordpress.org/reference/classes/WP_Customize_Nav_Menus/
WP_Customize_Nav_Menus] but if `$this->manager->get_panel( 'nav_menus' )`
returns null then it seems like most (if not all) of the hooks added in
`__constuct()` should just be skipped, right?
I'm sure I **real** fix is a little more complicated than that, but it
seems that a deeper dive into how each of the Composer objects initialize
themselves is needed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54905#comment:33>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list