Make WordPress Core

Ticket #17877: 17877.2.diff

File 17877.2.diff, 784 bytes (added by aaroncampbell, 11 years ago)
  • wp-includes/general-template.php

     
    589589        if ( !empty($title) )
    590590                $prefix = " $sep ";
    591591
     592        $title_array = apply_filters( 'wp_title_parts', explode( $t_sep, $title ) );
     593
    592594        // Determines position of the separator and direction of the breadcrumb
    593595        if ( 'right' == $seplocation ) { // sep on right, so reverse the order
    594                 $title_array = explode( $t_sep, $title );
    595596                $title_array = array_reverse( $title_array );
    596597                $title = implode( " $sep ", $title_array ) . $prefix;
    597598        } else {
    598                 $title_array = explode( $t_sep, $title );
    599599                $title = $prefix . implode( " $sep ", $title_array );
    600600        }
    601601