wpmu_admin_redirect_add_updated_param

Advertisement

Deprecated Deprecated

This function has been deprecated. Use add_query_arg() instead.

Summery Summery

Adds an ‘updated=true’ argument to a URL.

Syntax Syntax

wpmu_admin_redirect_add_updated_param( string $url = '' )

Parameters Parameters

$url

(string) (Optional) Redirect URL.

Default value: ''

Return Return

(string)

Source Source

File: wp-includes/ms-deprecated.php

function wpmu_admin_redirect_add_updated_param( $url = '' ) {
	_deprecated_function( __FUNCTION__, '3.3.0', 'add_query_arg()' );

	if ( strpos( $url, 'updated=true' ) === false ) {
		if ( strpos( $url, '?' ) === false )
			return $url . '?updated=true';
		else
			return $url . '&updated=true';
	}
	return $url;
}

Advertisement

Changelog Changelog

Changelog
Version Description
3.3.0 Use add_query_arg()
MU (3.0.0) Introduced.

See also See also

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.