[wp-trac] [WordPress Trac] #31723: is_page( false ) === true ?
WordPress Trac
noreply at wordpress.org
Sat Mar 21 16:06:46 UTC 2015
#31723: is_page( false ) === true ?
--------------------------+-----------------------------
Reporter: Compute | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
https://developer.wordpress.org/reference/classes/wp_query/is_page/
''Is the query for an existing single page?''
But this really does not make sense to me:
{{{
if ( empty( $page ) )
return true;
}}}
Is there a reason that is_page() will return true on empty, false, 0
values?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31723>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list