Skip to content

Commit aff316b

Browse files
committed
Filter should receive an array.
1 parent cf441cc commit aff316b

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 = '»', $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', ! empty( $title ) ? explode( $t_sep, $title ) : '' );
1439+
$title_array = apply_filters( 'wp_title_parts', ! empty( $title ) ? explode( $t_sep, $title ) : array() );
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)