In paginate_links(), break is unreachable after return.

See #27882.

Built from https://develop.svn.wordpress.org/trunk@28326


git-svn-id: http://core.svn.wordpress.org/trunk@28154 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2014-05-06 21:25:15 +00:00
parent de4eaacd89
commit 3d0eed82f8

View File

@ -2500,19 +2500,20 @@ function paginate_links( $args = '' ) {
/** This filter is documented in wp-includes/general-template.php */ /** This filter is documented in wp-includes/general-template.php */
$page_links[] = '<a class="next page-numbers" href="' . esc_url( apply_filters( 'paginate_links', $link ) ) . '">' . $next_text . '</a>'; $page_links[] = '<a class="next page-numbers" href="' . esc_url( apply_filters( 'paginate_links', $link ) ) . '">' . $next_text . '</a>';
endif; endif;
switch ( $type ) : switch ( $type ) {
case 'array' : case 'array' :
return $page_links; return $page_links;
break;
case 'list' : case 'list' :
$r .= "<ul class='page-numbers'>\n\t<li>"; $r .= "<ul class='page-numbers'>\n\t<li>";
$r .= join("</li>\n\t<li>", $page_links); $r .= join("</li>\n\t<li>", $page_links);
$r .= "</li>\n</ul>\n"; $r .= "</li>\n</ul>\n";
break; break;
default : default :
$r = join("\n", $page_links); $r = join("\n", $page_links);
break; break;
endswitch; }
return $r; return $r;
} }