WP_REST_Themes_Controller::_sanitize_stylesheet_callback
Sanitize the stylesheet to decode endpoint.
Method of the class: WP_REST_Themes_Controller{}
No Hooks.
Returns
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() WP REST Themes Controller:: sanitize stylesheet callback code WP 7.0
public function _sanitize_stylesheet_callback( $stylesheet ) {
return urldecode( $stylesheet );
}