WP_REST_Global_Styles_Controller::_sanitize_global_styles_callbackpublicWP 5.9.0

Sanitize the global styles stylesheet to decode endpoint. For example, wp/v2/global-styles/twentytwentytwo%200.4.0 would be decoded to twentytwentytwo 0.4.0.

Метод класса: WP_REST_Global_Styles_Controller{}

Хуков нет.

Возвращает

Строку. Sanitized global styles stylesheet.

Использование

$WP_REST_Global_Styles_Controller = new WP_REST_Global_Styles_Controller();
$WP_REST_Global_Styles_Controller->_sanitize_global_styles_callback( $stylesheet );
$stylesheet(строка) (обязательный)
Global styles stylesheet.

Список изменений

С версии 5.9.0 Введена.

Код WP_REST_Global_Styles_Controller::_sanitize_global_styles_callback() WP 7.0

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