WordPress.org

Make WordPress Core

Ticket #36244: general-template_new_fliter.php.patch

File general-template_new_fliter.php.patch, 787 bytes (added by pbearne, 6 years ago)
  • src/wp-includes/general-template.php

     
    16761676                $order = 'DESC';
    16771677        }
    16781678
    1679         // this is what will separate dates on weekly archive links
    1680         $archive_week_separator = '–';
     1679        /**
     1680         * Filter what will separate dates on weekly archive links.
     1681         *
     1682         * @since 4.5
     1683         *
     1684         * @param string '-' (–) used to split the atart and end for the week.
     1685         */
     1686        $archive_week_separator =  apply_filters( 'getarchives_week_separator', '–' );
    16811687
    16821688        // over-ride general date format ? 0 = no: use the date format set in Options, 1 = yes: over-ride
    16831689        $archive_date_format_over_ride = 0;