[wp-trac] [WordPress Trac] #12743: Add $post_type as 3rd parameter to get_page_by_title() in /wp-includes/post.php

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 31 10:53:43 UTC 2010


#12743: Add $post_type as 3rd parameter to get_page_by_title() in /wp-
includes/post.php
--------------------------+-------------------------------------------------
 Reporter:  mikeschinkel  |        Owner:        
     Type:  enhancement   |       Status:  closed
 Priority:  normal        |    Milestone:  3.0   
Component:  Post Types    |      Version:  3.0   
 Severity:  normal        |   Resolution:  fixed 
 Keywords:  has-patch     |  
--------------------------+-------------------------------------------------

Comment(by scribu):

 It would have been better if we left get_page_by_title() alone and created
 a more general function:

 {{{get_post_by($field, $value, $post_type);}}}

 This would be similar to get_term_by().

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


More information about the wp-trac mailing list