[wp-trac] [WordPress Trac] #55111: Notice: Trying to get property 'title' of non-object

WordPress Trac noreply at wordpress.org
Sat Feb 12 23:23:18 UTC 2022

#55111: Notice: Trying to get property 'title' of non-object
 Reporter:  Suresh Shinde  |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  5.9.1
Component:  Customize      |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  needs-patch    |     Focuses:
Changes (by dlh):

 * keywords:  has-dev-note => needs-patch
 * milestone:  Awaiting Review => 5.9.1


 Hi @suresh-shinde, and welcome to WordPress Trac! Thanks for the ticket.

 I think this was introduced in [52621], so marking for 5.9.1

 The Customizer seems to assume that it will be known whether nav menus are
 going to be available by this point: https://github.com/WordPress

 However, since the referenced commit short-circuits the nav menus panel
 via `check_capabilities()`, the panel is removed from the manager at a
 later stage -- the `customize_controls_init` hook:

Ticket URL: <https://core.trac.wordpress.org/ticket/55111#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list