[wp-trac] [WordPress Trac] #63484: Attempt to read property "name" on bool - wp-admin/nav-menus.php :1221
WordPress Trac
noreply at wordpress.org
Fri May 30 05:09:00 UTC 2025
#63484: Attempt to read property "name" on bool - wp-admin/nav-menus.php :1221
-------------------------------+------------------------------
Reporter: apermo | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Menus | Version: 3.0
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Comment (by apermo):
@avinashbhosale I have no method how to reproduce it. And since it is a
logical flaw, I have not tried to.
The issue is that the restult of `wp_get_nav_menu_object()` is used
without confirming that it did not return false.
Adding `is_nav_menu()` to the condition like @sabernhardt suggested in
#37026 should fix it.
@sabernhardt: Should we mark this one as duplicate?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63484#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list