[wp-trac] [WordPress Trac] #37026: PHP Notice: Trying to get property of non-object in wp-admin\nav-menus.php on line 836
WordPress Trac
noreply at wordpress.org
Tue Feb 17 06:46:32 UTC 2026
#37026: PHP Notice: Trying to get property of non-object in wp-admin\nav-menus.php
on line 836
-----------------------------------------+--------------------------
Reporter: skylarkcob | Owner: sabernhardt
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 7.0
Component: Menus | Version: 3.0
Severity: normal | Resolution: fixed
Keywords: has-patch needs-copy-review | Focuses:
-----------------------------------------+--------------------------
Changes (by audrasjb):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"61658" 61658]:
{{{
#!CommitTicketReference repository="" revision="61658"
Menus: Prevent error in Menu location checkbox settings.
This changeset avoids throwing a PHP error when an invalid ID is assigned
to a menu location, creates a text string to display when using an invalid
menu ID, and assigns `id` and `aria-describedby` attributes to connect the
`span` element with the related checkbox.
Props skylarkcob, Frozzare, sabernhardt, apermo, SirLouen, audrasjb,
mukesh27, westonruter.
Fixes #37026.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37026#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list