WP_REST_Global_Styles_Controller::_sanitize_global_styles_callback( string $stylesheet ): string

In this article

Sanitize the global styles stylesheet to decode endpoint.

Description

For example, wp/v2/global-styles/twentytwentytwo%200.4.0 would be decoded to twentytwentytwo 0.4.0.

Parameters

$stylesheetstringrequired
Global styles stylesheet.

Return

string Sanitized global styles stylesheet.

Source

public function _sanitize_global_styles_callback( $stylesheet ) {
	return urldecode( $stylesheet );
}

Changelog

VersionDescription
5.9.0Introduced.

User Contributed Notes

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