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 );
	}
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 );
	}
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 ) ; }
Builds and formats a page link URL.

@since  5.0.0
@access protected
@param  string    $format
@param  int       $number
@return string
Builds and formats a page link URL .