diff --git a/athena-shortcodes.php b/athena-shortcodes.php index 0f4a971..59710f2 100644 --- a/athena-shortcodes.php +++ b/athena-shortcodes.php @@ -35,9 +35,6 @@ function athena_sc_get_cache_bust() { } } -define( 'ATHENA_SC__CACHE_BUST', athena_sc_get_cache_bust() ); - - // Shortcode files include_once ATHENA_SC__PLUGIN_DIR . 'includes/class-shortcode.php'; include_once ATHENA_SC__PLUGIN_DIR . 'shortcodes/shortcodes.php'; @@ -113,13 +110,12 @@ function athena_sc_tinymce_init() { // Register necessary actions/filters if TinyMCE options are enabled. $options_enabled = get_option( 'athena_sc_enable_tinymce_formatting' ); if ( $options_enabled ) { - // Enqueue TinyMCE styles. - add_editor_style( plugins_url( 'static/css/athena-editor-styles.min.css?' . ATHENA_SC__CACHE_BUST, ATHENA_SC__PLUGIN_FILE ) ); // Enable custom TinyMCE formats. add_filter( 'mce_buttons_2', array( 'ATHENA_SC_TinyMCE_Config', 'enable_formats' ) ); + // Enqueue TinyMCE styles. + add_editor_style( plugins_url( 'static/css/athena-editor-styles.min.css?' . athena_sc_get_cache_bust(), ATHENA_SC__PLUGIN_FILE ) ); // Register custom formatting options with TinyMCE. add_action( 'tiny_mce_before_init', array( 'ATHENA_SC_TinyMCE_Config', 'register_settings' ) ); - // Override classes added to tags generated by WordPress. add_filter( 'get_image_tag_class', array( 'ATHENA_SC_TinyMCE_Config', 'format_image_output_classes' ), 10, 4 ); // Override the default caption shortcode to apply Athena classes.