[wp-trac] [WordPress Trac] #31630: Need variable validation in nav-menu-template.php

WordPress Trac noreply at wordpress.org
Sat Mar 14 05:07:18 UTC 2015


#31630: Need variable validation in nav-menu-template.php
--------------------------+------------------------
 Reporter:  rpayne7264    |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Menus         |     Version:  4.1.1
 Severity:  normal        |  Resolution:  duplicate
 Keywords:                |     Focuses:
--------------------------+------------------------
Changes (by DrewAPicture):

 * status:  reopened => closed
 * resolution:   => duplicate


Comment:

 Replying to [comment:3 rpayne7264]:
 > 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.

 Fair enough. This is a duplicate of #24548.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31630#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list