From 5cf2a50dbaa2442455ce316e3d372488dadbc523 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 6 May 2014 21:24:22 +0000 Subject: [PATCH] In `paginate_links()`, `break` is unreachable after `return`. See #27882. git-svn-id: https://develop.svn.wordpress.org/trunk@28326 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/general-template.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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; }