From 2a727d560447fff702507a0991636c44bfa2ecce Mon Sep 17 00:00:00 2001 From: Joel James Date: Wed, 23 Nov 2016 14:44:16 +0530 Subject: [PATCH] Remove additional slash (/) from assets path --- classes/core.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/classes/core.php b/classes/core.php index d57e62a..4c5c1d7 100644 --- a/classes/core.php +++ b/classes/core.php @@ -189,14 +189,14 @@ public function enqueue_admin_stylescripts() { if( false !== strpos( $screen->base, 'epoch' ) ){ - wp_enqueue_style( 'epoch-core-style', EPOCH_URL . '/assets/css/styles.css' ); + wp_enqueue_style( 'epoch-core-style', EPOCH_URL . 'assets/css/styles.css' ); wp_enqueue_style( 'epoch-baldrick-modals' ); wp_enqueue_script( 'epoch-wp-baldrick' ); wp_enqueue_script( 'jquery-ui-autocomplete' ); wp_enqueue_script( 'jquery-ui-sortable' ); - wp_enqueue_style( 'epoch-codemirror-style', EPOCH_URL . '/assets/css/codemirror.css' ); - wp_enqueue_script( 'epoch-codemirror-script', EPOCH_URL . '/assets/js/codemirror.js', array( 'jquery' ) , false ); - wp_enqueue_script( 'epoch-core-script', EPOCH_URL . '/assets/js/scripts.js', array( 'epoch-wp-baldrick' ) , false ); + wp_enqueue_style( 'epoch-codemirror-style', EPOCH_URL . 'assets/css/codemirror.css' ); + wp_enqueue_script( 'epoch-codemirror-script', EPOCH_URL . 'assets/js/codemirror.js', array( 'jquery' ) , false ); + wp_enqueue_script( 'epoch-core-script', EPOCH_URL . 'assets/js/scripts.js', array( 'epoch-wp-baldrick' ) , false ); wp_enqueue_style( 'wp-color-picker' ); wp_enqueue_script( 'wp-color-picker' ); @@ -236,21 +236,21 @@ public function front_stylescripts() { wp_enqueue_script( 'visibility', '//cdnjs.cloudflare.com/ajax/libs/visibility.js/1.2.1/visibility.min.js', array('jquery'), $version, true ); //handlebars - wp_enqueue_script( 'epoch-handlebars', EPOCH_URL . "/assets/js/front/handlebars.js", array('jquery'), $version, true ); + wp_enqueue_script( 'epoch-handlebars', EPOCH_URL . "assets/js/front/handlebars.js", array('jquery'), $version, true ); //load unminified if !SCRIPT_DEBUG if ( ! $min ) { //our handlebars helpers - wp_enqueue_script( 'epoch-handlebars-helpers', EPOCH_URL . '/assets/js/front/helpers.js', array( 'epoch-handlebars' ), $version, true ); + wp_enqueue_script( 'epoch-handlebars-helpers', EPOCH_URL . 'assets/js/front/helpers.js', array( 'epoch-handlebars' ), $version, true ); //main script - wp_enqueue_script( 'epoch', EPOCH_URL . "/assets/js/front/epoch.js", array( 'jquery', 'visibility' ), $version, true ); + wp_enqueue_script( 'epoch', EPOCH_URL . "assets/js/front/epoch.js", array( 'jquery', 'visibility' ), $version, true ); } //main scripts and styles - wp_enqueue_script( 'epoch', EPOCH_URL . "/assets/js/front/epoch{$suffix}.js", array( 'jquery', 'epoch-handlebars' ), $version, true ); + wp_enqueue_script( 'epoch', EPOCH_URL . "assets/js/front/epoch{$suffix}.js", array( 'jquery', 'epoch-handlebars' ), $version, true ); if ( 'none' != $theme ) { - wp_enqueue_style( "epoch-{$theme}", EPOCH_URL . "/assets/css/front/{$theme}{$suffix}.css", $version, true ); + wp_enqueue_style( "epoch-{$theme}", EPOCH_URL . "assets/css/front/{$theme}{$suffix}.css", $version, true ); } @@ -386,8 +386,8 @@ protected function translation_strings() { * @since 0.0.5 */ public function register_common() { - wp_register_style( 'epoch-baldrick-modals', EPOCH_URL . '/assets/css/modals.css' ); - wp_register_script( 'epoch-wp-baldrick', EPOCH_URL . '/assets/js/wp-baldrick-full.js', array( 'jquery' ) , false, true ); + wp_register_style( 'epoch-baldrick-modals', EPOCH_URL . 'assets/css/modals.css' ); + wp_register_script( 'epoch-wp-baldrick', EPOCH_URL . 'assets/js/wp-baldrick-full.js', array( 'jquery' ) , false, true ); } }