WordPress.org

Make WordPress Core

Ticket #31521: 31521-2.diff

File 31521-2.diff, 751 bytes (added by davidmosterd, 2 years ago)

Patch with my comment

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

     
    11601160        // If there's a month
    11611161        if ( is_archive() && ! empty( $m ) ) {
    11621162                $my_year  = substr( $m, 0, 4 );
    1163                 $my_month = $wp_locale->get_month( substr( $m, 4, 2 ) );
     1163                $my_month = substr( $m, 4, 2 );
    11641164                $my_day   = intval( substr( $m, 6, 2 ) );
    1165                 $title    = $my_year . ( $my_month ? $t_sep . $my_month : '' ) . ( $my_day ? $t_sep . $my_day : '' );
     1165                $title    = $my_year . ( $my_month ? $t_sep . $wp_locale->get_month( $my_month ) : '' ) . ( $my_day ? $t_sep . $my_day : '' );
    11661166        }
    11671167
    11681168        // If there's a year