Make WordPress Core

Ticket #31521: 31521.3.diff

File 31521.3.diff, 811 bytes (added by audrasjb, 4 years ago)

patch refreshed against trunk

  • src/wp-includes/general-template.php

    diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php
    index 6b67cd9a71..e22ef43855 100644
    a b function wp_title( $sep = '»', $display = true, $seplocation = '' ) { 
    13461346        // If there's a month.
    13471347        if ( is_archive() && ! empty( $m ) ) {
    13481348                $my_year  = substr( $m, 0, 4 );
    1349                 $my_month = $wp_locale->get_month( substr( $m, 4, 2 ) );
     1349                $my_month = substr( $m, 4, 2 );
    13501350                $my_day   = (int) substr( $m, 6, 2 );
    1351                 $title    = $my_year . ( $my_month ? $t_sep . $my_month : '' ) . ( $my_day ? $t_sep . $my_day : '' );
     1351                $title    = $my_year . ( $my_month ? $t_sep . $wp_locale->get_month( $my_month ) : '' ) . ( $my_day ? $t_sep . $my_day : '' );
    13521352        }
    13531353
    13541354        // If there's a year.