mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 15:08:10 +01:00
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:
parent
de4eaacd89
commit
3d0eed82f8
@ -2500,19 +2500,20 @@ function paginate_links( $args = '' ) {
|
||||
/** 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>';
|
||||
endif;
|
||||
switch ( $type ) :
|
||||
switch ( $type ) {
|
||||
case 'array' :
|
||||
return $page_links;
|
||||
break;
|
||||
|
||||
case 'list' :
|
||||
$r .= "<ul class='page-numbers'>\n\t<li>";
|
||||
$r .= join("</li>\n\t<li>", $page_links);
|
||||
$r .= "</li>\n</ul>\n";
|
||||
break;
|
||||
|
||||
default :
|
||||
$r = join("\n", $page_links);
|
||||
break;
|
||||
endswitch;
|
||||
}
|
||||
return $r;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user