Plugin Directory

Changeset 1891113


Ignore:
Timestamp:
06/11/2018 04:04:21 PM (8 years ago)
Author:
tealium
Message:

Commit 2.1.9

Location:
tealium/trunk
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • tealium/trunk/readme.txt

    r1836078 r1891113  
    44Donate link: http://tealium.com
    55Requires at least: 3.0.1
    6 Tested up to: 4.9.1
    7 Stable tag: 2.1.8
     6Tested up to: 4.9.6
     7Stable tag: 2.1.9
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    104104== Changelog ==
    105105
     106= 2.1.9 =
     107* Add translation support and template.
     108* Move data layer above sync file.
     109
    106110= 2.1.8 =
    107111* Fix issues with WooCommerce support.
     
    175179== Upgrade Notice ==
    176180
     181= 2.1.9 =
     182Add translation support and template.
     183Move data layer above sync file.
     184
    177185= 2.1.8 =
    178186Fix issues with WooCommerce support.
  • tealium/trunk/tealium.php

    r1836078 r1891113  
    44Plugin URI: http://tealium.com
    55Description: Adds the Tealium tag and creates a data layer for your WordPress site.
    6 Version: 2.1.8
     6Version: 2.1.9
    77Author: Ian Hampton - Tealium EMEA
    88Author URI: http://tealium.com
    99Text Domain: tealium
     10Domain Path: /languages
    1011*/
    1112
     
    8384}
    8485
     86function load_plugin_textdomain_tealium() {
     87    load_plugin_textdomain( 'tealium', FALSE, basename( dirname( __FILE__ ) ) . '/languages/' );
     88}
     89add_action( 'plugins_loaded', 'load_plugin_textdomain_tealium' );
    8590
    8691/*
     
    607612    $utagSync = get_option( 'tealiumUtagSync' );
    608613    if ( "1" == $utagSync ) {
    609         add_action( 'wp_head', 'tealiumOutputUtagSync', 1 );
    610     }
    611 
    612     // Add utag.sync.js if required
     614        add_action( 'wp_head', 'tealiumOutputUtagSync', 2 );
     615    }
     616
     617    // Add DNS Prefetch if required
    613618    $dnsPrefetch = get_option( 'tealiumDNSPrefetch' );
    614619    if ( "1" == $dnsPrefetch ) {
     
    630635    // Insert the data object
    631636    if ( get_option( 'tealiumTagLocation' ) != '3' ) {
    632         add_action( 'wp_head', 'tealiumEncodedDataObject', 2 );
    633     }
    634 }
     637        add_action( 'wp_head', 'tealiumEncodedDataObject', 1 );
     638    }
     639}
Note: See TracChangeset for help on using the changeset viewer.