Skip to content

Commit cf441cc

Browse files
Update src/wp-includes/general-template.php
Co-authored-by: Weston Ruter <[email protected]>
1 parent 1c7b8b3 commit cf441cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/general-template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1436,7 +1436,7 @@ function wp_title( $sep = '&raquo;', $display = true, $seplocation = '' ) {
14361436
*
14371437
* @param string[] $title_array Array of parts of the page title.
14381438
*/
1439-
$title_array = apply_filters( 'wp_title_parts', explode( $t_sep, $title ?? '' ) );
1439+
$title_array = apply_filters( 'wp_title_parts', ! empty( $title ) ? explode( $t_sep, $title ) : '' );
14401440

14411441
// Determines position of the separator and direction of the breadcrumb.
14421442
if ( 'right' === $seplocation ) { // Separator on right, so reverse the order.

0 commit comments

Comments
 (0)