diff --git a/class/dashboard/layout.php b/class/dashboard/layout.php index 840410a..a38b88a 100644 --- a/class/dashboard/layout.php +++ b/class/dashboard/layout.php @@ -211,33 +211,16 @@ abstract class MCI_Footnotes_Layout_Engine { * automated update of version number for cache busting. * No need to use '-styles' in the handle, as '-css' is appended automatically. */ - if ( C_BOOL_CSS_PRODUCTION_MODE ) { - - wp_register_style( - 'mci-footnotes-admin', - plugins_url( 'footnotes/css/settings.min.css' ), - array(), - filemtime( - plugin_dir_path( - dirname( __FILE__ ) - ) . 'css/settings.min.css' - ) - ); - - } else { - - wp_register_style( - 'mci-footnotes-admin', - plugins_url( 'footnotes/css/settings.css' ), - array(), - filemtime( - plugin_dir_path( - dirname( __FILE__, 2 ) - ) . 'css/settings.css' - ) - ); - - } + wp_register_style( + 'mci-footnotes-admin', + plugins_url( 'footnotes/css/settings' . ( ( C_BOOL_CSS_PRODUCTION_MODE ) ? '.min' : '' ) . '.css' ), + array(), + ( C_BOOL_CSS_PRODUCTION_MODE ) ? C_STR_PACKAGE_VERSION : filemtime( + plugin_dir_path( + dirname( __FILE__ ) + ) . 'css/settings' . ( ( C_BOOL_CSS_PRODUCTION_MODE ) ? '.min' : '' ) . '.css' + ) + ); wp_enqueue_style( 'mci-footnotes-admin' ); } diff --git a/class/init.php b/class/init.php index af20d85..6e70d9c 100644 --- a/class/init.php +++ b/class/init.php @@ -416,11 +416,7 @@ class MCI_Footnotes { MCI_Footnotes_Config::C_STR_PLUGIN_NAME . '/css/footnotes-' . $l_str_tooltip_mode_short . 'brpl' . $l_str_layout_mode . '.min.css' ), array(), - filemtime( - plugin_dir_path( - dirname( __FILE__ ) - ) . 'css/footnotes-' . $l_str_tooltip_mode_short . 'ttbrpl' . $l_str_layout_mode . '.min.css' - ), + C_STR_PACKAGE_VERSION, 'all' );