diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php
index 9837f535e2..7f3cd5d98a 100644
a
|
b
|
class WP_REST_Global_Styles_Controller extends WP_REST_Controller { |
695 | 695 | * @param string $css CSS to validate. |
696 | 696 | * @return true|WP_Error True if the input was validated, otherwise WP_Error. |
697 | 697 | */ |
698 | | protected function validate_custom_css( $css ) { |
| 698 | private function validate_custom_css( $css ) { |
699 | 699 | if ( preg_match( '#</?\w+#', $css ) ) { |
700 | 700 | return new WP_Error( |
701 | 701 | 'rest_custom_css_illegal_markup', |