Plugin Directory

Changeset 2176200


Ignore:
Timestamp:
10/19/2019 08:27:07 PM (6 years ago)
Author:
dragosmicu
Message:

Hot fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wootomation/trunk/wootomation.php

    r2176195 r2176200  
    6767        public function activate() {
    6868            // Set thank you notice transient
    69             set_transient( 'wt-admin-notices-on-install', true, 5 );
    70             set_transient( 'wt-admin-notices-after-one-month', true, 30 * DAY_IN_SECONDS );
    71             set_transient( 'wt-admin-notices-after-two-months', true, 60 * DAY_IN_SECONDS );
     69            set_site_transient( 'wt-admin-notices-on-install', true, 5 );
     70            set_site_transient( 'wt-admin-notices-after-one-month', true, 30 * DAY_IN_SECONDS );
     71            set_site_transient( 'wt-admin-notices-after-two-months', true, 60 * DAY_IN_SECONDS );
    7272            flush_rewrite_rules();
    7373            if( class_exists( 'WooCommerce' ) ){
     
    8888        public function wt_admin_notices() {
    8989            // Adds notice of require WooCommerce plugin
    90             if( !in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ){
     90            if( !in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) )  || !class_exists('WooCommerce') ){
    9191                ?>
    9292                <div class="notice-warning settings-error notice">
Note: See TracChangeset for help on using the changeset viewer.