Make WordPress Core

Ticket #31956: patch-1.diff

File patch-1.diff, 732 bytes (added by Toro_Unit, 10 years ago)
Line 
1*** general-template.php        Mon Mar 30 13:11:04 2015
2--- general-template.patch.php  Mon Apr 13 12:39:39 2015
3***************
4*** 837,845 ****
5                $title = __('Page not found');
6        }
7 
8-       $prefix = '';
9-       if ( !empty($title) )
10-               $prefix = " $sep ";
11 
12        /**
13         * Filter the parts of the page title.
14--- 837,842 ----
15***************
16*** 850,855 ****
17--- 847,856 ----
18         */
19        $title_array = apply_filters( 'wp_title_parts', explode( $t_sep, $title ) );
20 
21+       $prefix = '';
22+       if ( !empty($title_array) )
23+               $prefix = " $sep ";
24+
25        // Determines position of the separator and direction of the breadcrumb
26        if ( 'right' == $seplocation ) { // sep on right, so reverse the order
27                $title_array = array_reverse( $title_array );