[wp-trac] [WordPress Trac] #3801: wp_title function missing day in archives by day and unwanted $sep when month empty

WordPress Trac wp-trac at lists.automattic.com
Fri Feb 16 21:28:24 GMT 2007


#3801: wp_title function missing day in archives by day and unwanted $sep when
month empty
----------------------+-----------------------------------------------------
 Reporter:  phKU      |       Owner:  anonymous
     Type:  defect    |      Status:  new      
 Priority:  normal    |   Milestone:  2.1.2    
Component:  Template  |     Version:  2.1      
 Severity:  normal    |    Keywords:           
----------------------+-----------------------------------------------------
 File: "general-template.php", line 193-214, wp_title function:

  1. should add the day in archives by day mode.
  2. shouldn't add a trailing $sep when $my_month is empty (new 2.1
 archives by year option).

 Suggested change:
 {{{
 #193 $title = "$my_year $sep $my_month";
 }}}
 to
 {{{
 #193 $my_day = intval(substr($m, 6, 2));
 #194 $title = "$my_year" . ($my_month ? "$sep $my_month" : "") .
      ($my_day ? "$sep $my_day" : "");
 }}}

 (searched for "archives" + "day", "archives" + "space", "wp_title")

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


More information about the wp-trac mailing list