Ticket #17877: 17877.3.diff
File 17877.3.diff, 941 bytes (added by , 9 years ago) |
---|
-
src/wp-includes/general-template.php
836 836 if ( !empty($title) ) 837 837 $prefix = " $sep "; 838 838 839 /** 840 * Filter the parts of the document title. 841 * 842 * @since 4.0.0 843 * 844 * @param array $title_array Parts of the document title. 845 */ 846 $title_array = apply_filters( 'wp_title_parts', explode( $t_sep, $title ) ); 847 839 848 // Determines position of the separator and direction of the breadcrumb 840 849 if ( 'right' == $seplocation ) { // sep on right, so reverse the order 841 $title_array = explode( $t_sep, $title );842 850 $title_array = array_reverse( $title_array ); 843 851 $title = implode( " $sep ", $title_array ) . $prefix; 844 852 } else { 845 $title_array = explode( $t_sep, $title );846 853 $title = $prefix . implode( " $sep ", $title_array ); 847 854 } 848 855