[wp-trac] [WordPress Trac] #24674: WP_Query::is_page() should use stricter comparison
WordPress Trac
noreply at wordpress.org
Tue Jul 2 15:47:53 UTC 2013
#24674: WP_Query::is_page() should use stricter comparison
--------------------------+------------------------------
Reporter: clifgriffin | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.5.2
Severity: minor | Resolution:
Keywords: has-patch |
--------------------------+------------------------------
Comment (by nacin):
$page can be an array, so you'd need to do that check for each piece of
the array. So is probably simpler to first test `$page_obj->ID`.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24674#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list