Make WordPress Core

Ticket #48122: ticket-48122.diff

File ticket-48122.diff, 821 bytes (added by ngdangtu, 5 years ago)
  • general-template.php

     
    10221022 *
    10231023 * @global int $page  Page number of a single post.
    10241024 * @global int $paged Page number of a list of posts.
    1025  *
     1025 *
     1026 * @param string $sep
    10261027 * @return string Tag with the document title.
    10271028 */
    1028 function wp_get_document_title() {
     1029function wp_get_document_title($sep = '-') {
    10291030
    10301031        /**
    10311032         * Filters the document title before it is generated.
     
    11161117         *
    11171118         * @param string $sep Document title separator. Default '-'.
    11181119         */
    1119         $sep = apply_filters( 'document_title_separator', '-' );
     1120        $sep = apply_filters( 'document_title_separator', $sep );
    11201121
    11211122        /**
    11221123         * Filters the parts of the document title.