Skip to content

Commit

Permalink
Fix editor css path
Browse files Browse the repository at this point in the history
  • Loading branch information
qrac committed Oct 11, 2020
1 parent b93446e commit 986f4f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
18 changes: 4 additions & 14 deletions functions/editors.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 986f4f4

Please sign in to comment.