Changeset 56575
- Timestamp:
- 09/14/2023 05:11:50 AM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php
r56193 r56575 664 664 * 665 665 * @since 6.0.0 666 * @since 6.2.0 Returns parent theme variations, if they exist. 666 667 * 667 668 * @param WP_REST_Request $request The request instance. … … 680 681 681 682 $variations = WP_Theme_JSON_Resolver::get_style_variations(); 682 $response = rest_ensure_response( $variations ); 683 684 return $response; 683 684 return rest_ensure_response( $variations ); 685 685 } 686 686 … … 691 691 * 692 692 * @since 6.2.0 693 * @since 6.4.0 Changed method visibility to protected. 693 694 * 694 695 * @param string $css CSS to validate. 695 696 * @return true|WP_Error True if the input was validated, otherwise WP_Error. 696 697 */ 697 pr ivatefunction validate_custom_css( $css ) {698 protected function validate_custom_css( $css ) { 698 699 if ( preg_match( '#</?\w+#', $css ) ) { 699 700 return new WP_Error(
Note: See TracChangeset
for help on using the changeset viewer.