Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Yes, spacing.
  • Loading branch information
ramonjd committed May 1, 2024
commit 1827703193691155886b251270ef1936c8abc741
2 changes: 1 addition & 1 deletion lib/block-editor-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function gutenberg_get_block_editor_settings( $settings ) {
$current_theme = wp_get_theme();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using wp_get_theme to get full WP_Theme object in case folks want to use other helpful methods.

$settings['currentTheme'] = array(
// Directory of the current theme. Will be the child theme directory if a child theme is active.
'directoryURI' => $current_theme->get_stylesheet_directory_uri(),
'directoryURI' => $current_theme->get_stylesheet_directory_uri(),
// `__unstableIsBlockBasedTheme` could also be relocated here, e.g., 'isBlockTheme' => $current_theme->is_block_theme().
);

Expand Down