Make WordPress Core

Ticket #59718: patch.patch

File patch.patch, 781 bytes (added by rebasaurus, 14 months ago)
  • wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php

    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 { 
    695695         * @param string $css CSS to validate.
    696696         * @return true|WP_Error True if the input was validated, otherwise WP_Error.
    697697         */
    698         protected function validate_custom_css( $css ) {
     698        private function validate_custom_css( $css ) {
    699699                if ( preg_match( '#</?\w+#', $css ) ) {
    700700                        return new WP_Error(
    701701                                'rest_custom_css_illegal_markup',