[wp-trac] [WordPress Trac] #16802: is_page() doesn't accept a full path

WordPress Trac noreply at wordpress.org
Tue Jul 8 21:14:03 UTC 2014


#16802: is_page() doesn't accept a full path
------------------------------+------------------
 Reporter:  johnbillion       |       Owner:
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  4.0
Component:  Query             |     Version:  3.1
 Severity:  minor             |  Resolution:
 Keywords:  has-patch commit  |     Focuses:
------------------------------+------------------

Comment (by johnbillion):

 [attachment:16802.diff] implements the same path checking for
 `is_single()` and also adds a check for the existence of a forward slash
 at a non-zero position in the path in order to avoid unnecessary queries.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/16802#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list