Changeset 60681 for trunk/src/wp-includes/theme-previews.php
- Timestamp:
- 08/27/2025 10:32:57 AM (8 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/theme-previews.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme-previews.php
r57171 r60681 50 50 sprintf( 51 51 'wp.apiFetch.use( wp.apiFetch.createThemePreviewMiddleware( %s ) );', 52 wp_json_encode( sanitize_text_field( wp_unslash( $_GET['wp_theme_preview'] ) ) )52 wp_json_encode( sanitize_text_field( wp_unslash( $_GET['wp_theme_preview'] ) ), JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) 53 53 ), 54 54 'after' … … 71 71 ?> 72 72 <script type="text/javascript"> 73 window.WP_BLOCK_THEME_ACTIVATE_NONCE = <?php echo wp_json_encode( wp_create_nonce( $nonce_handle ) ); ?>;73 window.WP_BLOCK_THEME_ACTIVATE_NONCE = <?php echo wp_json_encode( wp_create_nonce( $nonce_handle ), JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ); ?>; 74 74 </script> 75 75 <?php
Note: See TracChangeset
for help on using the changeset viewer.