WordPress.org

Make WordPress Core

Changeset 5137


Ignore:
Timestamp:
03/29/07 02:06:16 (8 years ago)
Author:
rob1n
Message:

Fix months in wp_title(). fixes #4043

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/general-template.php

    r5136 r5137  
    202202    if ( !empty($m) ) { 
    203203        $my_year = substr($m, 0, 4); 
    204         $my_month = $wp_locale->get_month($m); 
     204        $my_month = $wp_locale->get_month(substr($m, 4, 2)); 
    205205        $my_day = intval(substr($m, 6, 2)); 
    206206        $title = "$my_year" . ($my_month ? "$sep $my_month" : "") . ($my_day ? "$sep $my_day" : ""); 
Note: See TracChangeset for help on using the changeset viewer.