From 0092cbffd373712342ec1d2c26a4fbdbbe17bd1a Mon Sep 17 00:00:00 2001 From: Fabiano Date: Wed, 3 Oct 2018 16:27:20 -0300 Subject: [PATCH] remove error on theme sniffer (Theme and Core) --- src/assets/js/js.js | 6 +++--- src/functions/class-tainacanthemecollectioncolor.php | 4 ++-- src/functions/enqueues.php | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/assets/js/js.js b/src/assets/js/js.js index 403f832..ade1842 100644 --- a/src/assets/js/js.js +++ b/src/assets/js/js.js @@ -95,8 +95,8 @@ jQuery( document ).ready(function( $ ) { ] }); - $('.tainacan-interface-truncate').tainacan_interface_truncate(); - $( ".trigger" ).click( function() { - $( ".collection-header--share" ).toggleClass( "active" ); + $( '.tainacan-interface-truncate' ).tainacan_interface_truncate(); + $( ".trigger" ).click( function() { + $( ".collection-header--share" ).toggleClass( "active" ); }); }); diff --git a/src/functions/class-tainacanthemecollectioncolor.php b/src/functions/class-tainacanthemecollectioncolor.php index 5d00a82..fbbd01b 100644 --- a/src/functions/class-tainacanthemecollectioncolor.php +++ b/src/functions/class-tainacanthemecollectioncolor.php @@ -17,14 +17,14 @@ class TainacanThemeCollectionColor { function action_tainacan_enqueue_admin_scripts() { wp_enqueue_script( 'tainacan_colorWell', get_template_directory_uri() . '/functions/collection-color.js', false, false, true ); wp_enqueue_style( 'tainacan_colorWellStyle', get_template_directory_uri() . '/functions/collection-color.css' ); - wp_localize_script( 'tainacan_colorWell', 'tainacan_colorPickerVars', [ + wp_localize_script( 'tainacan_colorWell', 'tainacan_colorPickerVars', array( 'cancelText' => __("cancel", 'tainacan-interface'), 'chooseText' => __("choose", 'tainacan-interface'), 'togglePaletteMoreText' => __("more", 'tainacan-interface'), 'togglePaletteLessText' => __("less", 'tainacan-interface'), 'clearText' => __("Clear Color Selection", 'tainacan-interface'), 'noColorSelectedText' => __("No Color Selected", 'tainacan-interface'), - ] ); + ) ); wp_enqueue_script( 'tainacan_Spectrum', get_template_directory_uri() . '/assets/js/spectrum.js', false, false, true ); wp_enqueue_style( 'tainacan_Spectrum', get_template_directory_uri() . '/assets/js/spectrum.css' ); diff --git a/src/functions/enqueues.php b/src/functions/enqueues.php index 0b877e7..6cd6715 100644 --- a/src/functions/enqueues.php +++ b/src/functions/enqueues.php @@ -46,10 +46,10 @@ if ( ! function_exists( 'tainacan_enqueues' ) ) { * Tainacan Theme */ wp_enqueue_script( 'tainacan_tainacanTruncate', get_template_directory_uri() . '/assets/js/tainacan-interface-truncate.js', array( 'jquery' ), '1.0', false ); - wp_localize_script( 'tainacan_tainacanTruncate', 'tainacan_trucanteVars', [ + wp_localize_script( 'tainacan_tainacanTruncate', 'tainacan_trucanteVars', array( "moreText" => __('More', 'tainacan-interface'), "lessText" => __('Less', 'tainacan-interface') - ]); + )); wp_register_style( 'tainacan_tainacanStyle', get_stylesheet_uri(), array( 'tainacan_bootstrap4CSS' ) ); wp_enqueue_style( 'tainacan_tainacanStyle' );