diff --git a/functions.php b/functions.php index 6c7cd01..b4c0411 100644 --- a/functions.php +++ b/functions.php @@ -175,9 +175,7 @@ function polestar_scripts() { wp_enqueue_style( 'polestar-style', get_template_directory_uri() . '/style' . PURO_THEME_CSS_PREFIX . '.css', array(), PURO_THEME_VERSION ); // FitVids. - if ( ! ( function_exists( 'has_blocks' ) && has_blocks() ) ) { - wp_enqueue_script( 'jquery-fitvids', get_template_directory_uri() . '/js/jquery.fitvids' . PURO_THEME_JS_PREFIX . '.js', array( 'jquery' ), '1.1', true ); - } + wp_enqueue_script( 'jquery-fitvids', get_template_directory_uri() . '/js/jquery.fitvids' . PURO_THEME_JS_PREFIX . '.js', array( 'jquery' ), '1.1', true ); // Flexslider. wp_register_script( 'jquery-flexslider', get_template_directory_uri() . '/js/jquery.flexslider' . PURO_THEME_JS_PREFIX . '.js', array( 'jquery' ), '2.6.3', true ); diff --git a/inc/customizer-library b/inc/customizer-library index 7d9b22f..19f18b2 160000 --- a/inc/customizer-library +++ b/inc/customizer-library @@ -1 +1 @@ -Subproject commit 7d9b22fe9d7817fe2f6c5266e06aa6374e2f7399 +Subproject commit 19f18b2c3f81fbd2418abd568116aa6f9b0c46a5 diff --git a/inc/deprecated.php b/inc/deprecated.php index f2b217e..c4c3ec7 100644 --- a/inc/deprecated.php +++ b/inc/deprecated.php @@ -6,17 +6,6 @@ * @license GPL 2.0 */ -if ( ! function_exists( 'polestar_excerpt_length' ) ) : -/** - * Filter the excerpt length. - * @deprecated 1.2.7 Use polestar_excerpt() - */ -function polestar_excerpt_length( $length ) { - return get_theme_mod( 'excerpt_length', 55 ); -} -add_filter( 'excerpt_length', 'polestar_excerpt_length', 10 ); -endif; - if ( ! function_exists( 'polestar_excerpt_more' ) ) : /** * Add a more link to the excerpt. @@ -30,4 +19,3 @@ function polestar_excerpt_more( $more ) { } } endif; -add_filter( 'excerpt_more', 'polestar_excerpt_more' ); diff --git a/inc/template-tags.php b/inc/template-tags.php index 747bc21..4b65a13 100644 --- a/inc/template-tags.php +++ b/inc/template-tags.php @@ -65,8 +65,12 @@ function polestar_breadcrumbs() { * Display the WooCommerce mini cart. */ function polestar_mini_cart() { - if ( class_exists( 'Woocommerce' ) && ! ( is_cart() || is_checkout() ) ) : ?> - + if ( + class_exists( 'Woocommerce' ) && + apply_filters( 'polestar_display_mini_cart', ! ( is_cart() || is_checkout() ) ) + ) : + global $woocommerce; + ?>