Coding Standards: Fix WPCS issue in [46088].
See #47110. git-svn-id: https://develop.svn.wordpress.org/trunk@46089 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
159c78c853
commit
26ae8b54d1
@ -4077,7 +4077,8 @@ function paginate_links( $args = '' ) {
|
||||
esc_attr( $args['aria_current'] ),
|
||||
$args['before_page_number'] . number_format_i18n( $n ) . $args['after_page_number']
|
||||
);
|
||||
$dots = true;
|
||||
|
||||
$dots = true;
|
||||
else :
|
||||
if ( $args['show_all'] || ( $n <= $end_size || ( $current && $n >= $current - $mid_size && $n <= $current + $mid_size ) || $n > $total - $end_size ) ) :
|
||||
$link = str_replace( '%_%', 1 == $n ? '' : $args['format'], $args['base'] );
|
||||
@ -4093,10 +4094,12 @@ function paginate_links( $args = '' ) {
|
||||
esc_url( apply_filters( 'paginate_links', $link ) ),
|
||||
$args['before_page_number'] . number_format_i18n( $n ) . $args['after_page_number']
|
||||
);
|
||||
$dots = true;
|
||||
|
||||
$dots = true;
|
||||
elseif ( $dots && ! $args['show_all'] ) :
|
||||
$page_links[] = '<span class="page-numbers dots">' . __( '…' ) . '</span>';
|
||||
$dots = false;
|
||||
|
||||
$dots = false;
|
||||
endif;
|
||||
endif;
|
||||
endfor;
|
||||
|
Loading…
Reference in New Issue
Block a user