diff --git a/src/AdminMenus/AdminThemeOptionsMenu/AdminThemeOptionsMenuCli.php b/src/AdminMenus/AdminThemeOptionsMenu/AdminThemeOptionsMenuCli.php index 9ba2b2aa..e764c880 100644 --- a/src/AdminMenus/AdminThemeOptionsMenu/AdminThemeOptionsMenuCli.php +++ b/src/AdminMenus/AdminThemeOptionsMenu/AdminThemeOptionsMenuCli.php @@ -47,8 +47,8 @@ public function getCommandName(): string public function getDefaultArgs(): array { return [ - 'title' => 'Theme Options', - 'menu_title' => 'Theme Options', + 'title' => 'Theme options', + 'menu_title' => 'Theme options', 'capability' => 'manage_options', 'menu_icon' => '', 'menu_position' => 100, diff --git a/src/Enqueue/AbstractAssets.php b/src/Enqueue/AbstractAssets.php index b532d779..a3608ff9 100644 --- a/src/Enqueue/AbstractAssets.php +++ b/src/Enqueue/AbstractAssets.php @@ -75,7 +75,7 @@ protected function getFrontendScriptDependencies(): array */ protected function getAdminScriptDependencies(): array { - return []; + return ['wp-element', 'wp-i18n', 'wp-api-fetch']; } /** diff --git a/src/Enqueue/Blocks/EnqueueBlocksExample.php b/src/Enqueue/Blocks/EnqueueBlocksExample.php index d287445f..3019f03c 100644 --- a/src/Enqueue/Blocks/EnqueueBlocksExample.php +++ b/src/Enqueue/Blocks/EnqueueBlocksExample.php @@ -37,6 +37,9 @@ public function register(): void // Frontend only style. \add_action('wp_enqueue_scripts', [$this, 'enqueueBlockFrontendStyle'], 50); + + // Unregister default style overrides. + \add_action('enqueue_block_editor_assets', [$this, 'unregisterDefaultStyleOverrides'], 102); } /**