summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYury German <blueknight@gentoo.org>2019-05-22 00:42:33 -0400
committerYury German <blueknight@gentoo.org>2019-05-22 00:42:33 -0400
commite89abce1b01dda89efdf230101d1aa3c877b3b6c (patch)
treecfb27a564c1f4cfff30d18dbf591efd48283b154 /plugins/jetpack/modules/google-analytics/wp-google-analytics.php
parentAdding Twentyninetten (diff)
downloadblogs-gentoo-e89abce1b01dda89efdf230101d1aa3c877b3b6c.tar.gz
blogs-gentoo-e89abce1b01dda89efdf230101d1aa3c877b3b6c.tar.bz2
blogs-gentoo-e89abce1b01dda89efdf230101d1aa3c877b3b6c.zip
Updating of Plugins and Themes
List of Plugins updates -- akismet.4.1.2 google-authenticator.0.52 jetpack.7.3.1 List of Themes Updates -- mantra.3.2.0 twentyfifteen.2.5 twentyfourteen.2.7 Signed-off-by: Yury German <blueknight@gentoo.org>
Diffstat (limited to 'plugins/jetpack/modules/google-analytics/wp-google-analytics.php')
-rw-r--r--plugins/jetpack/modules/google-analytics/wp-google-analytics.php76
1 files changed, 0 insertions, 76 deletions
diff --git a/plugins/jetpack/modules/google-analytics/wp-google-analytics.php b/plugins/jetpack/modules/google-analytics/wp-google-analytics.php
deleted file mode 100644
index 8d7cdf24..00000000
--- a/plugins/jetpack/modules/google-analytics/wp-google-analytics.php
+++ /dev/null
@@ -1,76 +0,0 @@
-<?php
-/*
- Copyright 2006 Aaron D. Campbell (email : wp_plugins@xavisys.com)
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-*/
-
-/**
- * Jetpack_Google_Analytics is the class that handles ALL of the plugin functionality.
- * It helps us avoid name collisions
- * http://codex.wordpress.org/Writing_a_Plugin#Avoiding_Function_Name_Collisions
- */
-
-if ( ! defined( 'ABSPATH' ) ) {
- exit;
-}
-
-require_once( plugin_basename( 'classes/wp-google-analytics-utils.php' ) );
-require_once( plugin_basename( 'classes/wp-google-analytics-options.php' ) );
-require_once( plugin_basename( 'classes/wp-google-analytics-legacy.php' ) );
-require_once( plugin_basename( 'classes/wp-google-analytics-universal.php' ) );
-
-class Jetpack_Google_Analytics {
-
- /**
- * @var Jetpack_Google_Analytics - Static property to hold our singleton instance
- */
- static $instance = false;
-
- /**
- * @var Static property to hold concrete analytics impl that does the work (universal or legacy)
- */
- static $analytics = false;
-
- /**
- * This is our constructor, which is private to force the use of get_instance()
- *
- * @return void
- */
- private function __construct() {
- // At this time, we only leverage universal analytics when enhanced ecommerce is selected and WooCommerce is active.
- // Otherwise, don't bother emitting the tracking ID or fetching analytics.js
- if ( class_exists( 'WooCommerce' ) && Jetpack_Google_Analytics_Options::enhanced_ecommerce_tracking_is_enabled() ) {
- $analytics = new Jetpack_Google_Analytics_Universal();
- } else {
- $analytics = new Jetpack_Google_Analytics_Legacy();
- }
-
- }
-
- /**
- * Function to instantiate our class and make it a singleton
- */
- public static function get_instance() {
- if ( ! self::$instance ) {
- self::$instance = new self;
- }
-
- return self::$instance;
- }
-}
-
-global $jetpack_google_analytics;
-$jetpack_google_analytics = Jetpack_Google_Analytics::get_instance();