protected function commentsArgs() {
		global $wp_rewrite;

		$base = add_query_arg( 'cpage', '%#%' );

		// Split the current URL between the base and query string.
		$this->url_parts = explode( '?', html_entity_decode( get_pagenum_link() ) );

		if ( $wp_rewrite->using_permalinks() ) {
			$base = user_trailingslashit( trailingslashit( get_permalink() ) . $wp_rewrite->comments_pagination_base . '-%#%', 'commentpaged' );
		}

		return [
			'base'         => $base,
			'format'       => '',
			'total'        => get_comment_pages_count(),
			'current'      => get_query_var( 'cpage' ) ?: 1,
			'add_fragment' => '#comments'
		];
	}
protected function commentsArgs() {
		global $wp_rewrite;

		$base = add_query_arg( 'cpage', '%#%' );

		// Split the current URL between the base and query string.
		$this->url_parts = explode( '?', html_entity_decode( get_pagenum_link() ) );

		if ( $wp_rewrite->using_permalinks() ) {
			$base = user_trailingslashit( trailingslashit( get_permalink() ) . $wp_rewrite->comments_pagination_base . '-%#%', 'commentpaged' );
		}

		return [
			'base'         => $base,
			'format'       => '',
			'total'        => get_comment_pages_count(),
			'current'      => get_query_var( 'cpage' ) ?: 1,
			'add_fragment' => '#comments'
		];
	}
protected function commentsArgs ( ) { global $ wp_rewrite ; $ base = add_query_arg ( 'cpage' , '%#%' ) ; // Split the current URL between the base and query string. $ this -> url_parts = explode ( '?' , html_entity_decode ( get_pagenum_link ( ) ) ) ; if ( $ wp_rewrite -> using_permalinks ( ) ) { $ base = user_trailingslashit ( trailingslashit ( get_permalink ( ) ) . $ wp_rewrite -> comments_pagination_base . '-%#%' , 'commentpaged' ) ; } return [ 'base' => $ base , 'format' => '' , 'total' => get_comment_pages_count ( ) , 'current' => get_query_var ( 'cpage' ) ? : 1 , 'add_fragment' => '#comments' ] ; }
Returns custom arguments for comments pagination.

@since  5.0.0
@access protected
@global object  $wp_rewrite
@return array
Returns custom arguments for comments pagination .