WP_REST_Themes_Controller::_sanitize_stylesheet_callback()publicWP 5.9.0

Sanitize the stylesheet to decode endpoint.

{} It's a 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.

Code of WP_REST_Themes_Controller::_sanitize_stylesheet_callback() WP 6.0

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