Changeset 60003 for trunk/src/wp-includes/block-editor.php
- Timestamp:
- 03/17/2025 01:01:24 PM (9 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/block-editor.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-editor.php
r59775 r60003 857 857 return $theme_settings; 858 858 } 859 860 /** 861 * Initialize site preview. 862 * 863 * This function sets IFRAME_REQUEST to true if the site preview parameter is set. 864 * 865 * @since 6.8.0 866 */ 867 function wp_initialize_site_preview_hooks() { 868 if ( 869 ! defined( 'IFRAME_REQUEST' ) && 870 isset( $_GET['wp_site_preview'] ) && 871 1 === (int) $_GET['wp_site_preview'] && 872 current_user_can( 'edit_theme_options' ) 873 ) { 874 define( 'IFRAME_REQUEST', true ); 875 } 876 }
Note: See TracChangeset
for help on using the changeset viewer.