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

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 9 15:59:39 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:               |
-------------------------+------------------------------

Comment (by johnbillion):

 Replying to [comment:2 hakre]:
 > I suggest to name such a function `is_page_path('foo/bar')` for a
 starter to prevent further parameter overloading of `is_page()`.
 What's "parameter overloading"? Why do we need another function?

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


More information about the wp-trac mailing list