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

WordPress Trac noreply at wordpress.org
Sat Jul 5 06:54:01 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 engelen):

 Jesper800 here.

 @SergeyBirukov I believe it should. As closely related as `is_single` and
 `is_page` are (they behave exactly the same, except for the first
 conditional (`$this->is_single` and `$this->is_page`, respectively), their
 behaviours shouldn't diverge. Can I start implementing this additional
 feature?

 On a side-note: shouldn't we actually add a separate method for the main
 functionality of `is_single` and `is_page` and call it from both functions
 after the `is_single` and `is_page` property checks?

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


More information about the wp-trac mailing list