Make WordPress Themes


Ignore:
Timestamp:
03/14/2025 09:10:17 AM (9 months ago)
Author:
themedropbox
Message:

New version of Inspiro - 2.0.2

Location:
inspiro/2.0.2
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • inspiro/2.0.2/inc/common-functions.php

    r260536 r263052  
    359359 * WooCommerce compatibility.
    360360 */
    361 if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
     361$active_plugins = apply_filters( 'active_plugins', get_option( 'active_plugins' ) );
     362if ( ! is_array( $active_plugins ) ) {
     363    $active_plugins = array();
     364}
     365if ( in_array( 'woocommerce/woocommerce.php', $active_plugins ) ) {
    362366    add_theme_support( 'woocommerce' );
    363367    add_theme_support( 'wc-product-gallery-zoom' );
Note: See TracChangeset for help on using the changeset viewer.