Skip to content

Commit

Permalink
changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
iruzevic committed Jul 12, 2024
1 parent d7acc88 commit 4fc3cab
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M7.84 1.804A1 1 0 0 1 8.82 1h2.36a1 1 0 0 1 .98.804l.331 1.652a6.993 6.993 0 0 1 1.929 1.115l1.598-.54a1 1 0 0 1 1.186.447l1.18 2.044a1 1 0 0 1-.205 1.251l-1.267 1.113a7.047 7.047 0 0 1 0 2.228l1.267 1.113a1 1 0 0 1 .206 1.25l-1.18 2.045a1 1 0 0 1-1.187.447l-1.598-.54a6.993 6.993 0 0 1-1.929 1.115l-.33 1.652a1 1 0 0 1-.98.804H8.82a1 1 0 0 1-.98-.804l-.331-1.652a6.993 6.993 0 0 1-1.929-1.115l-1.598.54a1 1 0 0 1-1.186-.447l-1.18-2.044a1 1 0 0 1 .205-1.251l1.267-1.114a7.05 7.05 0 0 1 0-2.227L1.821 7.773a1 1 0 0 1-.206-1.25l1.18-2.045a1 1 0 0 1 1.187-.447l1.598.54A6.992 6.992 0 0 1 7.51 3.456l.33-1.652ZM10 13a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z" clip-rule="evenodd" /></svg>',
'menu_position' => 100,
Expand Down
2 changes: 1 addition & 1 deletion src/Enqueue/AbstractAssets.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ protected function getFrontendScriptDependencies(): array
*/
protected function getAdminScriptDependencies(): array
{
return [];
return ['wp-element', 'wp-i18n', 'wp-api-fetch'];
}

/**
Expand Down
3 changes: 3 additions & 0 deletions src/Enqueue/Blocks/EnqueueBlocksExample.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 4fc3cab

Please sign in to comment.