Changeset 61486 for trunk/src/wp-includes/kses.php
- Timestamp:
- 01/15/2026 12:08:01 PM (3 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/kses.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/kses.php
r61467 r61486 2387 2387 2388 2388 $data_to_encode['isGlobalStylesUserThemeJSON'] = true; 2389 return wp_slash( wp_json_encode( $data_to_encode ) ); 2389 /** 2390 * JSON encode the data stored in post content. 2391 * Escape characters that are likely to be mangled by HTML filters: "<>&". 2392 * 2393 * This matches the escaping in {@see WP_REST_Global_Styles_Controller::prepare_item_for_database()}. 2394 */ 2395 return wp_slash( wp_json_encode( $data_to_encode, JSON_UNESCAPED_SLASHES | JSON_HEX_TAG | JSON_HEX_AMP ) ); 2390 2396 } 2391 2397 return $data;
Note: See TracChangeset
for help on using the changeset viewer.