Coding Standards: Fix WPCS issue in [46088].
See #47110. Built from https://develop.svn.wordpress.org/trunk@46089 git-svn-id: http://core.svn.wordpress.org/trunk@45901 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
dcb08f0637
commit
4d1761c881
|
@ -4077,6 +4077,7 @@ function paginate_links( $args = '' ) {
|
||||||
esc_attr( $args['aria_current'] ),
|
esc_attr( $args['aria_current'] ),
|
||||||
$args['before_page_number'] . number_format_i18n( $n ) . $args['after_page_number']
|
$args['before_page_number'] . number_format_i18n( $n ) . $args['after_page_number']
|
||||||
);
|
);
|
||||||
|
|
||||||
$dots = true;
|
$dots = true;
|
||||||
else :
|
else :
|
||||||
if ( $args['show_all'] || ( $n <= $end_size || ( $current && $n >= $current - $mid_size && $n <= $current + $mid_size ) || $n > $total - $end_size ) ) :
|
if ( $args['show_all'] || ( $n <= $end_size || ( $current && $n >= $current - $mid_size && $n <= $current + $mid_size ) || $n > $total - $end_size ) ) :
|
||||||
|
@ -4093,9 +4094,11 @@ function paginate_links( $args = '' ) {
|
||||||
esc_url( apply_filters( 'paginate_links', $link ) ),
|
esc_url( apply_filters( 'paginate_links', $link ) ),
|
||||||
$args['before_page_number'] . number_format_i18n( $n ) . $args['after_page_number']
|
$args['before_page_number'] . number_format_i18n( $n ) . $args['after_page_number']
|
||||||
);
|
);
|
||||||
|
|
||||||
$dots = true;
|
$dots = true;
|
||||||
elseif ( $dots && ! $args['show_all'] ) :
|
elseif ( $dots && ! $args['show_all'] ) :
|
||||||
$page_links[] = '<span class="page-numbers dots">' . __( '…' ) . '</span>';
|
$page_links[] = '<span class="page-numbers dots">' . __( '…' ) . '</span>';
|
||||||
|
|
||||||
$dots = false;
|
$dots = false;
|
||||||
endif;
|
endif;
|
||||||
endif;
|
endif;
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.3-alpha-46088';
|
$wp_version = '5.3-alpha-46089';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue