[wp-trac] [WordPress Trac] #12748: Rethink some of the pluggable architecture of twentyten functions.php
    WordPress Trac 
    wp-trac at lists.automattic.com
       
    Tue Mar 30 12:43:59 UTC 2010
    
    
  
#12748: Rethink some of the pluggable architecture of twentyten functions.php
--------------------------+-------------------------------------------------
 Reporter:  nacin         |       Owner:     
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.0
Component:  Themes        |     Version:     
 Severity:  normal        |    Keywords:     
--------------------------+-------------------------------------------------
Comment(by nacin):
 Simple answer: Don't consider these functions to be part of the core, just
 a theme. :)
 We're simply doing this because wp_title() isn't smart enough to handle
 page numbers (#12370, #11951). When we have one function that does the
 work -- including the <title> presentational aspect of adding " | Page: "
 -- and is unused except in the function that echoes the result, it's safe
 in my opinion to combine them. This isn't an API that will be used by
 others, just an internal helper function for a theme.
 I'm tempted to propose a wp_title_paging() or something that echoes
 nothing if get_query_var('paged') < 2, but then kicks into action with a
 separator and text before/after if it is paged. But really, that should be
 tackled together with making a more powerful wp_title().
 There are always tickets out there that attempt to create more consistency
 with get_* (often get_the_*) and the_*. Not sure what the status of each
 is though.
-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12748#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
    
    
More information about the wp-trac
mailing list