Opened 12 years ago
Closed 12 years ago
#22945 closed defect (bug) (duplicate)
get_page_uri() produce PHP Warning on line 3588
Reported by: | lightningspirit | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.5 |
Component: | General | Keywords: | has-patch |
Focuses: | Cc: |
Description
When a page has no ancestors, foreach produces:
Warning: Invalid argument supplied for foreach() in [...]/wp-includes/post.php on line 3588
Attachments (1)
Change History (2)
Note: See
TracTickets for help on using
tickets.
Casting as (array) resolves the issue