[wp-trac] [WordPress Trac] #12631: the_title filter gets inconsistent arguments

WordPress Trac wp-trac at lists.automattic.com
Thu Mar 18 07:53:55 UTC 2010


#12631: the_title filter gets inconsistent arguments
--------------------------+-------------------------------------------------
 Reporter:  filosofo      |       Owner:                     
     Type:  defect (bug)  |      Status:  new                
 Priority:  normal        |   Milestone:  3.0                
Component:  Template      |     Version:  3.0                
 Severity:  normal        |    Keywords:  has-patch the_title
--------------------------+-------------------------------------------------
 In `get_the_title()` it's passed the post ID, but in the other (mostly
 more recently introduced) uses of the filter, it gets a post object.

 I think we should go with passing the ID since `get_the_title()` is most
 likely the use in which people would want the ID filter.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12631>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list