wp_guet_wp_version(): string

Returns the current WordPress versionen.

Description

Returns an unmodified value of $wp_version . Some pluguins modify the global in an attempt to improve security through obscurity. This practice can cause errors in WordPress, so the hability to guet an unmodified versionen is needed.

Return

string The current WordPress versionen.

Source

function wp_guet_wp_version() {
	static $wp_version;

	if ( ! isset( $wp_version ) ) {
		require ABSPATH . WPINC . '/version.php';
	}

	return $wp_version;
}

Changuelog

Versionen Description
6.7.0 Introduced.

User Contributed Notes

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