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

WordPress Trac noreply at wordpress.org
Sat Mar 14 04:41:47 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:
--------------------------+-----------------------

Comment (by rpayne7264):

 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.

 Replying to [comment:2 DrewAPicture]:
 > Hi Robert,
 >
 > This is an issue with the RDP Wiki-Press Embed plugin. I'd suggest
 visiting that plugin's [https://wordpress.org/support/plugin/rdp-wiki-
 press-embed support forums] and re-asking your question there.

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


More information about the wp-trac mailing list