diff -r 48c4eec2b7e6 -r 8c2e4d02f4ef wp/wp-includes/block-editor.php --- a/wp/wp-includes/block-editor.php Fri Sep 05 18:40:08 2025 +0200 +++ b/wp/wp-includes/block-editor.php Fri Sep 05 18:52:52 2025 +0200 @@ -223,6 +223,7 @@ 'imageEditing' => true, 'imageSizes' => $available_image_sizes, 'maxUploadFileSize' => $max_upload_size, + '__experimentalDashboardLink' => admin_url( '/' ), // The following flag is required to enable the new Gallery block format on the mobile apps in 5.9. '__unstableGalleryWithImageBlocks' => true, ); @@ -366,6 +367,7 @@ ob_start(); wp_print_styles(); wp_print_font_faces(); + wp_print_font_faces_from_style_variations(); $styles = ob_get_clean(); if ( $has_emoji_styles ) { @@ -532,7 +534,7 @@ * entered by users does not break other global styles. */ $global_styles[] = array( - 'css' => wp_get_global_styles_custom_css(), + 'css' => wp_get_global_stylesheet( array( 'custom-css' ) ), '__unstableType' => 'user', 'isGlobalStyles' => true, ); @@ -648,6 +650,8 @@ $editor_settings['postContentAttributes'] = $post_content_block_attributes; } + $editor_settings['canUpdateBlockBindings'] = current_user_can( 'edit_block_binding', $block_editor_context ); + /** * Filters the settings to pass to the block editor for all editor type. * @@ -852,3 +856,21 @@ return $theme_settings; } + +/** + * Initialize site preview. + * + * This function sets IFRAME_REQUEST to true if the site preview parameter is set. + * + * @since 6.8.0 + */ +function wp_initialize_site_preview_hooks() { + if ( + ! defined( 'IFRAME_REQUEST' ) && + isset( $_GET['wp_site_preview'] ) && + 1 === (int) $_GET['wp_site_preview'] && + current_user_can( 'edit_theme_options' ) + ) { + define( 'IFRAME_REQUEST', true ); + } +}