Opened 12 years ago
Closed 11 years ago
#31630 closed defect (bug) (duplicate)
Need variable validation in nav-menu-template.php
| Reported by: | rpayne7264 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Menus | Version: | 4.1.1 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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
@
12 years ago
- Component General → Menus
- Summary Wordpress Bug - need variable validation in nav-menu-template.php → Need variable validation in nav-menu-template.php
#3
follow-up:
↓ 5
@
11 years ago
- Resolution invalid
- Status closed → 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
@
11 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
@
11 years ago
- Resolution → duplicate
- Status reopened → 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.