[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


Comment:

 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
 consideration.

 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
 /wordpress-develop/blob/4bf908449ad3be738e893d35faa449293d3ccb19/src/wp-
 includes/class-wp-customize-nav-menus.php#L55-L57

 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:
 https://github.com/WordPress/wordpress-
 develop/blob/8db1549c0f1af05fbb919ad2eeb7f7bff5a63da9/src/wp-includes
 /class-wp-customize-manager.php#L4471-L4487

-- 
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