Make WordPress Core

Ticket #36243: general-template.php.patch

File general-template.php.patch, 1.1 KB (added by pbearne, 9 years ago)
  • src/wp-includes/general-template.php

     
    16791679        // this is what will separate dates on weekly archive links
    16801680        $archive_week_separator = '–';
    16811681
    1682         // over-ride general date format ? 0 = no: use the date format set in Options, 1 = yes: over-ride
    1683         $archive_date_format_over_ride = 0;
    1684 
    16851682        // options for daily archive (only if you over-ride the general date format)
    16861683        $archive_day_date_format = 'Y/m/d';
    16871684
    1688         // options for weekly archive (only if you over-ride the general date format)
    1689         $archive_week_start_date_format = 'Y/m/d';
    1690         $archive_week_end_date_format   = 'Y/m/d';
    1691 
    1692         if ( ! $archive_date_format_over_ride ) {
    1693                 $archive_day_date_format = get_option( 'date_format' );
    1694                 $archive_week_start_date_format = get_option( 'date_format' );
    1695                 $archive_week_end_date_format = get_option( 'date_format' );
    1696         }
    1697 
    16981685        $sql_where = $wpdb->prepare( "WHERE post_type = %s AND post_status = 'publish'", $r['post_type'] );
    16991686
    17001687        /**