Make WordPress Core

Ticket #31521: 31521.4.diff

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

Patch refresh

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

    diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php
    index a246660c56..396516e248 100644
    a b function wp_title( $sep = '»', $display = true, $seplocation = '' ) { 
    13511351        // If there's a month.
    13521352        if ( is_archive() && ! empty( $m ) ) {
    13531353                $my_year  = substr( $m, 0, 4 );
    1354                 $my_month = $wp_locale->get_month( substr( $m, 4, 2 ) );
     1354                $my_month = substr( $m, 4, 2 );
    13551355                $my_day   = (int) substr( $m, 6, 2 );
    1356                 $title    = $my_year . ( $my_month ? $t_sep . $my_month : '' ) . ( $my_day ? $t_sep . $my_day : '' );
     1356                $title    = $my_year . ( $my_month ? $t_sep . $wp_locale->get_month( $my_month ) : '' ) . ( $my_day ? $t_sep . $my_day : '' );
    13571357        }
    13581358
    13591359        // If there's a year.