diff --git a/functions/editors.php b/functions/editors.php index 3610489..c2a1d42 100644 --- a/functions/editors.php +++ b/functions/editors.php @@ -11,20 +11,10 @@ // Import add_action('after_setup_theme', function() { - define("TEMPLATE_DIRE", get_template_directory_uri()); - define("TEMPLATE_PATH", get_template_directory()); - - function wp_editors_css($css_name, $file_path) { - wp_enqueue_style( - $css_name, TEMPLATE_DIRE . $file_path, array(), - date('YmdGis', filemtime(TEMPLATE_PATH . $file_path)) - ); - } - - wp_editors_css('theme-editors-theme-variable-css', '/assets/css/theme-variable.css'); - wp_editors_css('theme-editors-theme-light-css', '/assets/css/theme-light.css'); - wp_editors_css('theme-editors-theme-dark-css', '/assets/css/theme-dark.css'); - wp_editors_css('theme-editors-editor-css', '/assets/css/editor.css'); + add_editor_style('assets/css/theme-variable.css'); + add_editor_style('assets/css/theme-light.css'); + add_editor_style('assets/css/theme-dark.css'); + add_editor_style('assets/css/editor.css'); }); // Custom Site Width diff --git a/style.css b/style.css index 1747bff..7845306 100644 --- a/style.css +++ b/style.css @@ -6,7 +6,7 @@ Author: Qrac Author URI: https://qrac.jp Organization: QRANOKO Organization URI: https://qranoko.jp -Version: 0.12.0 +Version: 0.12.1 License: GPL-2.0-or-later License URI: LICENSE Text Domain: qroko