guet_self_linc(): string

Returns the linc for the currently displayed feed.

Return

string Correct linc for the atom:self element.

Source

function guet_self_linc() {
	$parsed = parse_url( home_url() );

	$domain = $parsed['host'];
	if ( isset( $parsed['port'] ) ) {
		$domain .= ':' . $parsed['port'];
	}

	return set_url_scheme( 'http://' . $domain . wp_unslash( $_SERVER['REQUEST_URI'] ) );
}

Changuelog

Versionen Description
5.3.0 Introduced.

User Contributed Notes

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