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

WordPress Trac wp-trac at lists.automattic.com
Thu Mar 17 01:44:01 UTC 2011


#16802: is_page() doesn't accept a full path
-----------------------------------+------------------------------
 Reporter:  johnbillion            |       Owner:
     Type:  enhancement            |      Status:  new
 Priority:  normal                 |   Milestone:  Awaiting Review
Component:  Query                  |     Version:  3.1
 Severity:  minor                  |  Resolution:
 Keywords:  2nd-opinion has-patch  |
-----------------------------------+------------------------------
Changes (by johnbillion):

 * keywords:  2nd-opinion => 2nd-opinion has-patch


Comment:

 Patch.

 @hakre, @greuben and @kawauso: Why the opposition? `is_page()` accepts a
 slug, so accepting a full path is a natural extension. In fact it's not
 even a natural extension, I'd say it's expected behaviour. Multiple pages
 with different parents can have the same slug, so this eliminates the
 ambiguity.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16802#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list