[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
 shared in slack] at the time:

 > I'm not really familiar with most the code for
 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