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:
Sergey Biryukov 2019-09-10 20:01:54 +00:00
parent dcb08f0637
commit 4d1761c881
2 changed files with 7 additions and 4 deletions

View File

@ -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">' . __( '&hellip;' ) . '</span>'; $page_links[] = '<span class="page-numbers dots">' . __( '&hellip;' ) . '</span>';
$dots = false; $dots = false;
endif; endif;
endif; endif;

View File

@ -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.