protected function buildUrl( $format, $number ) {

		$link = str_replace( '%_%', $format, $this->args['base'] );
		$link = str_replace( '%#%', $number, $link );

		// Adds any existing or new query vars to the URL.
		if ( $this->args['add_args'] ) {
			$link = add_query_arg( $this->args['add_args'], $link );
		}

		// Appends a fragment to the end of the URL.
		$link .= $this->args['add_fragment'];

		// Applies the core WP `paginate_links` filter hook.
		return apply_filters( 'paginate_links', $link );
	}