WordPress.org

Make WordPress Core

Ticket #17877: 17877.diff

File 17877.diff, 789 bytes (added by aaroncampbell, 3 years ago)
  • wp-includes/general-template.php

     
    596596        if ( !empty($title) ) 
    597597                $prefix = " $sep "; 
    598598 
     599        $title_array = apply_filters( 'wp_title_array', explode( $t_sep, $title ) ); 
     600 
    599601        // Determines position of the separator and direction of the breadcrumb 
    600602        if ( 'right' == $seplocation ) { // sep on right, so reverse the order 
    601                 $title_array = explode( $t_sep, $title ); 
    602603                $title_array = array_reverse( $title_array ); 
    603604                $title = implode( " $sep ", $title_array ) . $prefix; 
    604605        } else { 
    605                 $title_array = explode( $t_sep, $title ); 
    606606                $title = $prefix . implode( " $sep ", $title_array ); 
    607607        } 
    608608