Opened 14 years ago
Closed 14 years ago
#18892 closed defect (bug) (duplicate)
php notice: invalid index on get_page_by_path
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.3 |
Component: | Query | Keywords: | |
Focuses: | Cc: |
Description
On my blog , I have two pages;
/lazyest/gallery and /gallery
When, I call /gallery , get_page_by_path issues a php notice:
Notice: Undefined index: 1358 in E:\Wampserver\www\wordpress\wp-includes\post.php on line 3173
var_dump of pages array:
pages = Array ( [11] => stdClass Object ( [ID] => 11 [post_name] => gallery [post_parent] => 1358 ) [12] => stdClass Object ( [ID] => 12 [post_name] => gallery [post_parent] => 0 ) )
where 12 = ID of page showing
Change History (1)
Note: See
TracTickets for help on using
tickets.
#17670