From 3a257d2d364cfd7c1bedb41b9ae9765a48d5c8c6 Mon Sep 17 00:00:00 2001 From: infinitnet Date: Sat, 21 Oct 2023 09:20:53 +0200 Subject: [PATCH] file name changes and minor code improvements --- editor.css => rdo.css | 0 editor.js => rdo.js | 0 relevant-density-optimizer.php | 24 ++++++++++++++++-------- 3 files changed, 16 insertions(+), 8 deletions(-) rename editor.css => rdo.css (100%) rename editor.js => rdo.js (100%) diff --git a/editor.css b/rdo.css similarity index 100% rename from editor.css rename to rdo.css diff --git a/editor.js b/rdo.js similarity index 100% rename from editor.js rename to rdo.js diff --git a/relevant-density-optimizer.php b/relevant-density-optimizer.php index 59bbbef..92f2468 100644 --- a/relevant-density-optimizer.php +++ b/relevant-density-optimizer.php @@ -1,21 +1,28 @@ true, @@ -27,4 +34,5 @@ function rdo_register_meta() { )); } -add_action('init', 'rdo_register_meta'); +add_action('enqueue_block_editor_assets', __NAMESPACE__ . '\rdo_enqueue_block_editor_assets'); +add_action('init', __NAMESPACE__ . '\rdo_register_meta'); \ No newline at end of file