Skip to content

Commit

Permalink
Merge pull request #129 from moderntribe/s7/MOOSE-95/properly-enqueue…
Browse files Browse the repository at this point in the history
…-global-editor-assets

[MOOSE-95]: update asset enqueuing for global editor assets
  • Loading branch information
GeoffDusome authored Mar 11, 2024
2 parents 6663491 + b2ae784 commit 49a2951
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,7 @@ class Editor_Assets_Enqueuer extends Assets_Enqueuer {
public function register(): void {
$args = $this->get_asset_file_args( $this->assets_path . self::ASSETS_FILE );

wp_enqueue_style(
self::EDITOR,
$this->assets_path_uri . self::EDITOR_FILE_NAME . '.css',
[],
$args['version'] ?? false,
'all',
);
add_editor_style( $this->assets_path_uri . self::EDITOR_FILE_NAME . '.css', );

wp_enqueue_script(
self::EDITOR,
Expand Down

0 comments on commit 49a2951

Please sign in to comment.