WP_REST_Themes_Controller::_sanitize_stylesheet_callback()publicWP 5.9.0

Sanitize the stylesheet to decode endpoint.

Method of the class: WP_REST_Themes_Controller{}

No Hooks.

Return

String. Sanitized stylesheet.

Usage

$WP_REST_Themes_Controller = new WP_REST_Themes_Controller();
$WP_REST_Themes_Controller->_sanitize_stylesheet_callback( $stylesheet );
$stylesheet(string) (required)
The stylesheet name.

Changelog

Since 5.9.0 Introduced.

WP_REST_Themes_Controller::_sanitize_stylesheet_callback() code WP 6.4.3

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