Plugin Directory

Changeset 2651849


Ignore:
Timestamp:
01/02/2022 02:42:01 PM (4 years ago)
Author:
jrozanski
Message:

Fix for header generation

Location:
wide-angle-analytics/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wide-angle-analytics/trunk/readme.txt

    r2651338 r2651849  
    55Tested up to: 5.8.2
    66Requires PHP: 7.2
    7 Stable tag: 1.0.3
     7Stable tag: 1.0.4
    88License: GPLv2
    99
  • wide-angle-analytics/trunk/wide-angle-analytics.php

    r2651338 r2651849  
    66  Author:               Wide Angle Analytics by Input Objects GmbH
    77  Author URI:           https://wideangle.co
    8   Version:              1.0.3
     8  Version:              1.0.4
    99  Requires at least:    5.2
    1010  Requires PHP:         7.2
     
    4040    add_action('admin_init', array( &$this, 'registerPluginSettings' ) );
    4141    add_action('admin_menu', array( &$this, 'registerAdminMenu' ));
     42
     43    $this->plugin->generator = new WideAngleGenerator(get_option(self::WAA_CONF_ATTRIBUTES));
    4244    add_action('wp_head', array( &$this, 'renderHeaderScript'));
    4345    add_action('wp_footer', array( &$this, 'renderFooterScript'));
     
    4951   */
    5052  function renderHeaderScript() {
    51     $generator = new WideAngleGenerator(get_option(self::WAA_CONF_ATTRIBUTES));
    52     $this->renderContent($generator->generateHeaderScript()); // The Escaping takes place in the WideAngleGenerator::generateHeaderScript method.
     53    $this->renderContent($this->plugin->generator->generateHeaderScript()); // The Escaping takes place in the WideAngleGenerator::generateHeaderScript method.
    5354  }
    5455
     
    5859   */
    5960  function renderFooterScript() {
    60     $generator = new WideAngleGenerator(get_option(self::WAA_CONF_ATTRIBUTES));
    61     $this->renderContent($generator->generateHeaderScript()); // The Escaping takes place in the WideAngleGenerator::generateHeaderScript method.
     61    $this->renderContent($this->plugin->generator->generateFooterScript()); // The Escaping takes place in the WideAngleGenerator::generateFooterScript method.
    6262  }
    6363
     
    130130        if(count($errors) === 0) {
    131131          $attributes = new WideAngleAttributes($waaSiteId->get_value(), $waaTrackerDomain->get_value(), $waaIgnoreHash->get_value(), $waaExclusionPaths->get_value(), $waaIncParams->get_value());
    132 
    133132          update_option(self::WAA_CONF_SITE_ID,         $waaSiteId->get_value());
    134133          update_option(self::WAA_CONF_TRACKER_DOMAIN,  $waaTrackerDomain->get_value());
Note: See TracChangeset for help on using the changeset viewer.