Skip to content

Commit

Permalink
Switch from en-dash to | in wp_get_document_title as separator of <ti…
Browse files Browse the repository at this point in the history
…tle> elements.
  • Loading branch information
benlk committed Nov 9, 2018
1 parent 06d368e commit 7e39191
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions inc/open-graph.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,13 @@ function largo_wp_title_parts_filter( $parts ) {
return $parts;
}
add_filter( 'wp_title_parts', 'largo_wp_title_parts_filter' );

/**
* Return to using |
*
* @since Largo 0.6
* @link https://developer.wordpress.org/reference/functions/wp_get_document_title/
*/
add_filter( 'document_title_separator', function( $sep ) {
return '|';
});

0 comments on commit 7e39191

Please sign in to comment.