WP_REST_Themes_Controller::_sanitize_stylesheet_callback() – Sanitize the stylesheet to decode endpoint.

You appear to be a bot. Output may be restricted

Description

Sanitize the stylesheet to decode endpoint.

Usage

$string = WP_REST_Themes_Controller::_sanitize_stylesheet_callback( $stylesheet );

Parameters

$stylesheet
( string ) required – The stylesheet name.

Returns

string Sanitized stylesheet.

Source

File name: wordpress/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php
Lines:

1 to 3 of 3
  public function _sanitize_stylesheet_callback( $stylesheet ) {
    return urldecode( $stylesheet );
  }
 

 View on GitHub View on Trac