From 101f6dc67320c0a32937b8a1eb19ab02fcce1e89 Mon Sep 17 00:00:00 2001 From: Rumperuu Date: Mon, 26 Apr 2021 17:23:32 +0100 Subject: [PATCH] refactor: remove last remaining MCI references --- src/includes/class-footnotes.php | 14 +++++++------- src/includes/dashboard/layout.php | 6 +++--- src/includes/template.php | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/includes/class-footnotes.php b/src/includes/class-footnotes.php index f442673..2270c96 100644 --- a/src/includes/class-footnotes.php +++ b/src/includes/class-footnotes.php @@ -257,7 +257,7 @@ class Footnotes { * Deferring to the footer breaks jQuery tooltip display. */ wp_enqueue_script( - 'mci-footnotes-jquery-tools', + 'footnotes-jquery-tools', plugins_url( 'footnotes/public/js/jquery.tools' . ( ( PRODUCTION_ENV ) ? '.min' : '' ) . '.js' ), array(), '1.2.7.redacted.2', @@ -387,7 +387,7 @@ class Footnotes { // Enqueue the tailored united minified stylesheet. wp_enqueue_style( - 'mci-footnotes-' . $l_str_tooltip_mode_long . '-pagelayout-' . $l_str_page_layout_option, + 'footnotes-' . $l_str_tooltip_mode_long . '-pagelayout-' . $l_str_page_layout_option, plugins_url( Footnotes_Config::C_STR_PLUGIN_NAME . '/css/footnotes-' . $l_str_tooltip_mode_short . 'brpl' . $l_str_layout_mode . '.min.css' ), @@ -406,7 +406,7 @@ class Footnotes { * This optional layout fix is useful by lack of layout support. */ wp_enqueue_style( - 'mci-footnotes-common', + 'footnotes-common', plugins_url( Footnotes_Config::C_STR_PLUGIN_NAME . '/css/dev-common.css' ), array(), filemtime( @@ -416,7 +416,7 @@ class Footnotes { ) ); wp_enqueue_style( - 'mci-footnotes-tooltips', + 'footnotes-tooltips', plugins_url( Footnotes_Config::C_STR_PLUGIN_NAME . '/css/dev-tooltips.css' ), array(), filemtime( @@ -428,7 +428,7 @@ class Footnotes { if ( self::$a_bool_amp_enabled ) { wp_enqueue_style( - 'mci-footnotes-amp', + 'footnotes-amp', plugins_url( Footnotes_Config::C_STR_PLUGIN_NAME . '/css/dev-amp-tooltips.css' ), array(), filemtime( @@ -441,7 +441,7 @@ class Footnotes { if ( self::$a_bool_alternative_tooltips_enabled ) { wp_enqueue_style( - 'mci-footnotes-alternative', + 'footnotes-alternative', plugins_url( Footnotes_Config::C_STR_PLUGIN_NAME . '/css/dev-tooltips-alternative.css' ), array(), filemtime( @@ -455,7 +455,7 @@ class Footnotes { $l_str_page_layout_option = Footnotes_Settings::instance()->get( Footnotes_Settings::C_STR_FOOTNOTES_PAGE_LAYOUT_SUPPORT ); if ( 'none' !== $l_str_page_layout_option ) { wp_enqueue_style( - 'mci-footnotes-layout-' . $l_str_page_layout_option, + 'footnotes-layout-' . $l_str_page_layout_option, plugins_url( Footnotes_Config::C_STR_PLUGIN_NAME . '/css/dev-layout-' . $l_str_page_layout_option . '.css' ), diff --git a/src/includes/dashboard/layout.php b/src/includes/dashboard/layout.php index 692a9cb..41d13f6 100644 --- a/src/includes/dashboard/layout.php +++ b/src/includes/dashboard/layout.php @@ -216,15 +216,15 @@ abstract class Footnotes_Layout_Engine { */ if ( true === PRODUCTION_ENV ) { - wp_register_style( 'mci-footnotes-admin', plugins_url( 'footnotes/css/settings.min.css' ), array(), C_STR_FOOTNOTES_VERSION ); + wp_register_style( 'footnotes-admin', plugins_url( 'footnotes/css/settings.min.css' ), array(), C_STR_FOOTNOTES_VERSION ); } else { - wp_register_style( 'mci-footnotes-admin', plugins_url( 'footnotes/css/settings.css' ), array(), C_STR_FOOTNOTES_VERSION ); + wp_register_style( 'footnotes-admin', plugins_url( 'footnotes/css/settings.css' ), array(), C_STR_FOOTNOTES_VERSION ); } - wp_enqueue_style( 'mci-footnotes-admin' ); + wp_enqueue_style( 'footnotes-admin' ); } // phpcs:disable WordPress.Security.NonceVerification.Recommended, WordPress.Security.NonceVerification.Missing diff --git a/src/includes/template.php b/src/includes/template.php index ff8d1ef..2c91542 100644 --- a/src/includes/template.php +++ b/src/includes/template.php @@ -194,7 +194,7 @@ class Footnotes_Template { * The directory can be changed. * * @usage to change location of templates to 'template_parts/footnotes/': - * add_filter( 'mci_footnotes_template_directory', function( $directory ) { + * add_filter( 'footnotes_template_directory', function( $directory ) { * return 'template_parts/footnotes/'; * } ); */