Plugin Directory

Changeset 2575264


Ignore:
Timestamp:
07/30/2021 11:35:28 AM (5 years ago)
Author:
oribi
Message:

Fix for sporadic WC session issue

Location:
oribi-analytics-for-woocommerce/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • oribi-analytics-for-woocommerce/trunk/css/style.css

    r2550222 r2575264  
    172172  margin-top: 80px;
    173173}
     174
     175#wpfooter {
     176  bottom: -100px;
     177}
  • oribi-analytics-for-woocommerce/trunk/oribi-analytics-ecommerce.php

    r2565217 r2575264  
    66 * Author: Oribi
    77 * Author URI: https://oribi.io
    8  * Version: 1.8.1
     8 * Version: 1.8.2
    99 * Text Domain: oribi
    1010 * WC requires at least: 2.2
     
    1818    function oribi_add_stylesheet()
    1919    {
    20         wp_enqueue_style( 'oribi-styles', plugins_url( 'css/style.css', __FILE__ ) );
    21         wp_enqueue_style( 'roboto', 'https://fonts.googleapis.com/css?family=Roboto:400,500' );
     20        if(get_current_screen()->base === 'settings_page_oribi') {
     21            wp_enqueue_style('oribi-styles', plugins_url('css/style.css', __FILE__));
     22            wp_enqueue_style('roboto', 'https://fonts.googleapis.com/css?family=Roboto:400,500');
     23        }
    2224    }
    2325    add_action( 'admin_print_styles', 'oribi_add_stylesheet' );
     
    225227
    226228        public static function trackIntegratePurchase() {
    227             if ( function_exists( 'WC' ) &&  !empty(WC()->session) ) {
     229            if ( function_exists( 'WC' ) && !empty(WC()->session) ) {
    228230                $data = WC()->session->get( 'trackIntegratePurchase_data' );
    229231                $user_email =  WC()->session->get( 'trackIntegratePurchase_email');
  • oribi-analytics-for-woocommerce/trunk/readme.txt

    r2565217 r2575264  
    55Requires at least: 5.0
    66Tested up to: 5.7.2
    7 Stable tag: 1.8.1
     7Stable tag: 1.8.2
    88Requires PHP: 7.0
    99License: GPLv2 or later
Note: See TracChangeset for help on using the changeset viewer.