Skip to content
Merged
Prev Previous commit
Next Next commit
Merge branch 'master' into fix/use-srcset-for-cover
Conflicts:
	lib/client-assets.php
  • Loading branch information
ajlende committed Dec 7, 2020
commit 96d918b8b61e3583c3c9f7c013d4703790cb1a89
12 changes: 12 additions & 0 deletions lib/client-assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,18 @@ function gutenberg_extend_block_editor_settings_with_default_editor_styles( $set
}
add_filter( 'block_editor_settings', 'gutenberg_extend_block_editor_settings_with_default_editor_styles' );

/**
* Adds a flag to the editor settings to know whether we're in FSE theme or not.
*
* @param array $settings Default editor settings.
*
* @return array Filtered editor settings.
*/
function gutenberg_extend_block_editor_settings_with_fse_theme_flag( $settings ) {
$settings['isFSETheme'] = gutenberg_is_fse_theme();
return $settings;
}
add_filter( 'block_editor_settings', 'gutenberg_extend_block_editor_settings_with_fse_theme_flag' );

/**
* Adds a polyfill for object-fit in environments which do not support it.
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.