[wp-trac] [WordPress Trac] #31630: Need variable validation in nav-menu-template.php
WordPress Trac
noreply at wordpress.org
Sat Mar 14 04:36:35 UTC 2015
#31630: Need variable validation in nav-menu-template.php
--------------------------+-----------------------
Reporter: rpayne7264 | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone:
Component: Menus | Version: 4.1.1
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+-----------------------
Changes (by rpayne7264):
* status: closed => reopened
* resolution: invalid =>
Comment:
No, this is not an issue with my plugin. It is an issue of sloppy, non-
defensive coding in the WP core files. There needs to be a check that
$queried_object->ancestors is an array, before calling the is_array()
function. Or, the $queried_object code needs to be refactored to ensure an
empty array is returned, instead of null.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31630#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list