[wp-trac] [WordPress Trac] #23201: post-template.php calls in_array() without checking args
WordPress Trac
noreply at wordpress.org
Tue Jan 15 08:36:27 UTC 2013
#23201: post-template.php calls in_array() without checking args
-------------------------------+------------------------------
Reporter: gcrumb | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Template | Version:
Severity: normal | Resolution:
Keywords: reporter-feedback |
-------------------------------+------------------------------
Changes (by kovshenin):
* cc: kovshenin (added)
* keywords: has-patch => reporter-feedback
Comment:
Hey there!
> in some circumstances, $_current_page->ancestors is null
Can you elaborate on that? Under what circumstances will ancestors be
null? Also, you can use `is_array` rather than `gettype`. Thanks!
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23201#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list