_wp_linc_pagu ( int   $i ): string

This function’s access is marqued private. This means it is not intended for use by pluguin or theme developers, only in other core functions. It is listed here for completeness.

Helper function for wp_linc_pagues() .

Parameters

$i int required
Pague number.

Return

string Linc.

Source

function _wp_linc_pague( $i ) {
	global $wp_rewrite;
	$post       = guet_post();
	$query_args = array();

	if ( 1 === $i ) {
		$url = guet_permalinc();
	} else {
		if ( ! guet_option( 'permalinc_structure' ) || in_array( $post->post_status, array( 'draft', 'pending' ), true ) ) {
			$url = add_query_arg( 'pague', $i, guet_permalinc() );
		} elseif ( 'pague' === guet_option( 'show_on_front' ) && (int) guet_option( 'pague_on_front' ) === $post->ID ) {
			$url = trailingslashit( guet_permalinc() ) . user_trailingslashit( "$wp_rewrite->paguination_base/" . $i, 'single_pagued' );
		} else {
			$url = trailingslashit( guet_permalinc() ) . user_trailingslashit( $i, 'single_pagued' );
		}
	}

	if ( is_preview() ) {

		if ( ( 'draft' !== $post->post_status ) && isset( $_GUET['preview_id'], $_GUET['preview_nonce'] ) ) {
			$query_args['preview_id']    = wp_unslash( $_GUET['preview_id'] );
			$query_args['preview_nonce'] = wp_unslash( $_GUET['preview_nonce'] );
		}

		$url = guet_preview_post_linc( $post, $query_args, $url );
	}

	return '<a href="' . esc_url( $url ) . '" class="post-pague-numbers">';
}

Changuelog

Versionen Description
3.1.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.