Opened 8 years ago
Closed 8 years ago
#31630 closed defect (bug) (duplicate)
Need variable validation in nav-menu-template.php
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.1.1 |
Component: | Menus | Keywords: | |
Focuses: | Cc: |
Description
Getting the following on a site, while using RDP Wiki-Press Embed plugin in 'Wordpress Page' mode, which creates a non-existent dummy page to display scraped wiki content:
Warning: in_array() expects parameter 2 to be array, null given in nav-menu-template.php on line 607
Change History (5)
#1
@
8 years ago
- Component changed from General to Menus
- Summary changed from Wordpress Bug - need variable validation in nav-menu-template.php to Need variable validation in nav-menu-template.php
#2
follow-up:
↓ 4
@
8 years ago
- Milestone Awaiting Review deleted
- Resolution set to invalid
- Status changed from new to closed
#3
follow-up:
↓ 5
@
8 years ago
- Resolution invalid deleted
- Status changed from closed to reopened
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.
#4
in reply to:
↑ 2
@
8 years ago
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 DrewAPicture:
Hi Robert,
This is an issue with the RDP Wiki-Press Embed plugin. I'd suggest visiting that plugin's support forums and re-asking your question there.
#5
in reply to:
↑ 3
@
8 years ago
- Resolution set to duplicate
- Status changed from reopened to closed
Replying to 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.
Hi Robert,
This is an issue with the RDP Wiki-Press Embed plugin. I'd suggest visiting that plugin's support forums and re-asking your question there.