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
This commit is contained in:
Scott Taylor 2014-05-06 21:24:22 +00:00
parent ef5998eabb
commit 5cf2a50dba
1 changed files with 4 additions and 3 deletions

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;
} }