diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php index 30daba0800..91ae19db43 100644 --- a/src/wp-includes/general-template.php +++ b/src/wp-includes/general-template.php @@ -2500,19 +2500,20 @@ function paginate_links( $args = '' ) { /** This filter is documented in wp-includes/general-template.php */ $page_links[] = ''; endif; - switch ( $type ) : + switch ( $type ) { case 'array' : return $page_links; - break; + case 'list' : $r .= "\n"; break; + default : $r = join("\n", $page_links); break; - endswitch; + } return $r; }