Version Description
Release Date: July 21st, 2015
- Enhancements:
- Makes sure core functionality is only loaded when needed, improving admin performance and preventing compatibility issues with the upcoming 2.3 release of Yoast SEO.
Download this release
Release Info
| Developer | omarreiss |
| Plugin | |
| Version | 5.4.4 |
| Comparing to | |
| See all releases | |
Code changes from version 5.4.3 to 5.4.4
- admin/class-admin.php +27 -1
- admin/dashboards/class-admin-dashboards-collector.php +1 -1
- googleanalytics.php +2 -2
- languages/google-analytics-for-wordpress-ca.mo +0 -0
- languages/google-analytics-for-wordpress-de_DE.mo +0 -0
- languages/google-analytics-for-wordpress-en_AU.mo +0 -0
- languages/google-analytics-for-wordpress-en_GB.mo +0 -0
- languages/google-analytics-for-wordpress-es_ES.mo +0 -0
- languages/google-analytics-for-wordpress-es_MX.mo +0 -0
- languages/google-analytics-for-wordpress-fr_FR.mo +0 -0
- languages/google-analytics-for-wordpress-it_IT.mo +0 -0
- languages/google-analytics-for-wordpress-tr_TR.mo +0 -0
- languages/google-analytics-for-wordpress.pot +19 -19
- readme.txt +8 -1
- vendor/autoload.php +1 -1
- vendor/autoload_52.php +1 -1
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_real_52.php +3 -3
admin/class-admin.php
CHANGED
|
@@ -15,7 +15,17 @@ class Yoast_GA_Admin extends Yoast_GA_Options {
|
|
| 15 |
parent::__construct();
|
| 16 |
|
| 17 |
add_action( 'plugins_loaded', array( $this, 'init_ga' ) );
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
}
|
| 20 |
|
| 21 |
/**
|
|
@@ -598,4 +608,20 @@ class Yoast_GA_Admin extends Yoast_GA_Options {
|
|
| 598 |
}
|
| 599 |
}
|
| 600 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 601 |
}
|
| 15 |
parent::__construct();
|
| 16 |
|
| 17 |
add_action( 'plugins_loaded', array( $this, 'init_ga' ) );
|
| 18 |
+
|
| 19 |
+
// Only run admin_init when there is a cron jon executed.
|
| 20 |
+
$current_page = filter_input( INPUT_GET, 'page' );
|
| 21 |
+
|
| 22 |
+
// Only when current page is not 'wpseo'.
|
| 23 |
+
if ( strpos( $current_page, 'wpseo' ) !== 0 ) {
|
| 24 |
+
if ( ( $this->is_running_cron() || $this->is_running_ajax() ) || strpos( $current_page, 'yst_ga' ) === 0 ) {
|
| 25 |
+
add_action( 'admin_init', array( $this, 'init_settings' ) );
|
| 26 |
+
}
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
}
|
| 30 |
|
| 31 |
/**
|
| 608 |
}
|
| 609 |
}
|
| 610 |
|
| 611 |
+
/**
|
| 612 |
+
* Check if there the aggregate data cron is executed
|
| 613 |
+
* @return bool
|
| 614 |
+
*/
|
| 615 |
+
private function is_running_cron() {
|
| 616 |
+
return doing_action( 'yst_ga_aggregate_data' ) && defined( 'DOING_CRON' ) && DOING_CRON;
|
| 617 |
+
}
|
| 618 |
+
|
| 619 |
+
/**
|
| 620 |
+
* Check if there the aggregate data cron is executed
|
| 621 |
+
* @return bool
|
| 622 |
+
*/
|
| 623 |
+
private function is_running_ajax() {
|
| 624 |
+
return defined( 'DOING_AJAX' ) && DOING_AJAX && strpos( filter_input( INPUT_GET, 'action' ), 'yoast_dashboard' ) === 0;
|
| 625 |
+
}
|
| 626 |
+
|
| 627 |
}
|
admin/dashboards/class-admin-dashboards-collector.php
CHANGED
|
@@ -89,7 +89,7 @@ class Yoast_GA_Dashboards_Collector {
|
|
| 89 |
add_action( 'yst_ga_aggregate_data', array( $this, 'aggregate_data' ) );
|
| 90 |
|
| 91 |
// Check if the WP cron did run on time
|
| 92 |
-
if (
|
| 93 |
add_action( 'shutdown', array( $this, 'check_api_call_hook' ) );
|
| 94 |
}
|
| 95 |
}
|
| 89 |
add_action( 'yst_ga_aggregate_data', array( $this, 'aggregate_data' ) );
|
| 90 |
|
| 91 |
// Check if the WP cron did run on time
|
| 92 |
+
if ( filter_input( INPUT_GET, 'page' ) === 'yst_ga_dashboard' ) {
|
| 93 |
add_action( 'shutdown', array( $this, 'check_api_call_hook' ) );
|
| 94 |
}
|
| 95 |
}
|
googleanalytics.php
CHANGED
|
@@ -9,7 +9,7 @@
|
|
| 9 |
* Plugin URI: https://yoast.com/wordpress/plugins/google-analytics/#utm_source=wordpress&utm_medium=plugin&utm_campaign=wpgaplugin&utm_content=v504
|
| 10 |
* Description: This plugin makes it simple to add Google Analytics to your WordPress site, adding lots of features, e.g. error page, search result and automatic outgoing links and download tracking.
|
| 11 |
* Author: Team Yoast
|
| 12 |
-
* Version: 5.4.
|
| 13 |
* Requires at least: 3.8
|
| 14 |
* Author URI: https://yoast.com/
|
| 15 |
* License: GPL v3
|
|
@@ -35,7 +35,7 @@
|
|
| 35 |
|
| 36 |
// This plugin was originally based on Rich Boakes' Analytics plugin: http://boakes.org/analytics, but has since been rewritten and refactored multiple times.
|
| 37 |
|
| 38 |
-
define( 'GAWP_VERSION', '5.4.
|
| 39 |
|
| 40 |
define( 'GAWP_FILE', __FILE__ );
|
| 41 |
|
| 9 |
* Plugin URI: https://yoast.com/wordpress/plugins/google-analytics/#utm_source=wordpress&utm_medium=plugin&utm_campaign=wpgaplugin&utm_content=v504
|
| 10 |
* Description: This plugin makes it simple to add Google Analytics to your WordPress site, adding lots of features, e.g. error page, search result and automatic outgoing links and download tracking.
|
| 11 |
* Author: Team Yoast
|
| 12 |
+
* Version: 5.4.4
|
| 13 |
* Requires at least: 3.8
|
| 14 |
* Author URI: https://yoast.com/
|
| 15 |
* License: GPL v3
|
| 35 |
|
| 36 |
// This plugin was originally based on Rich Boakes' Analytics plugin: http://boakes.org/analytics, but has since been rewritten and refactored multiple times.
|
| 37 |
|
| 38 |
+
define( 'GAWP_VERSION', '5.4.4' );
|
| 39 |
|
| 40 |
define( 'GAWP_FILE', __FILE__ );
|
| 41 |
|
languages/google-analytics-for-wordpress-ca.mo
CHANGED
|
Binary file
|
languages/google-analytics-for-wordpress-de_DE.mo
CHANGED
|
Binary file
|
languages/google-analytics-for-wordpress-en_AU.mo
CHANGED
|
Binary file
|
languages/google-analytics-for-wordpress-en_GB.mo
CHANGED
|
Binary file
|
languages/google-analytics-for-wordpress-es_ES.mo
CHANGED
|
Binary file
|
languages/google-analytics-for-wordpress-es_MX.mo
CHANGED
|
Binary file
|
languages/google-analytics-for-wordpress-fr_FR.mo
CHANGED
|
Binary file
|
languages/google-analytics-for-wordpress-it_IT.mo
CHANGED
|
Binary file
|
languages/google-analytics-for-wordpress-tr_TR.mo
CHANGED
|
Binary file
|
languages/google-analytics-for-wordpress.pot
CHANGED
|
@@ -2,10 +2,10 @@
|
|
| 2 |
# This file is distributed under the GPL v3.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
-
"Project-Id-Version: Google Analytics by Yoast 5.4.
|
| 6 |
"Report-Msgid-Bugs-To: "
|
| 7 |
"https://github.com/yoast/google-analytics-for-wordpress/issues\n"
|
| 8 |
-
"POT-Creation-Date: 2015-07-
|
| 9 |
"MIME-Version: 1.0\n"
|
| 10 |
"Content-Type: text/plain; charset=utf-8\n"
|
| 11 |
"Content-Transfer-Encoding: 8bit\n"
|
|
@@ -45,7 +45,7 @@ msgstr ""
|
|
| 45 |
msgid "Dashboard"
|
| 46 |
msgstr ""
|
| 47 |
|
| 48 |
-
#: admin/class-admin-menu.php:242 admin/class-admin.php:
|
| 49 |
#: admin/pages/settings.php:10
|
| 50 |
msgid "Settings"
|
| 51 |
msgstr ""
|
|
@@ -55,7 +55,7 @@ msgstr ""
|
|
| 55 |
msgid "Extensions"
|
| 56 |
msgstr ""
|
| 57 |
|
| 58 |
-
#: admin/class-admin.php:
|
| 59 |
msgid ""
|
| 60 |
"Yoast plugins share some code between them to make your site faster. As a "
|
| 61 |
"result of that, we need all Yoast plugins to be up to date. We've detected "
|
|
@@ -63,60 +63,60 @@ msgid ""
|
|
| 63 |
"date yet."
|
| 64 |
msgstr ""
|
| 65 |
|
| 66 |
-
#: admin/class-admin.php:
|
| 67 |
msgid "Settings saved."
|
| 68 |
msgstr ""
|
| 69 |
|
| 70 |
-
#: admin/class-admin.php:
|
| 71 |
msgid "There were no changes to save, please try again."
|
| 72 |
msgstr ""
|
| 73 |
|
| 74 |
-
#: admin/class-admin.php:
|
| 75 |
msgid "The UA code needs to follow UA-XXXXXXXX-X format."
|
| 76 |
msgstr ""
|
| 77 |
|
| 78 |
-
#: admin/class-admin.php:
|
| 79 |
msgid "FAQ"
|
| 80 |
msgstr ""
|
| 81 |
|
| 82 |
-
#: admin/class-admin.php:
|
| 83 |
msgid ""
|
| 84 |
"If you want to track custom dimensions like page views per author or post "
|
| 85 |
"type, you should upgrade to the %1$spremium version of Google Analytics by "
|
| 86 |
"Yoast%2$s."
|
| 87 |
msgstr ""
|
| 88 |
|
| 89 |
-
#: admin/class-admin.php:
|
| 90 |
msgid ""
|
| 91 |
"This will also give you email access to the support team at Yoast, who will "
|
| 92 |
"provide support on the plugin 24/7."
|
| 93 |
msgstr ""
|
| 94 |
|
| 95 |
-
#: admin/class-admin.php:
|
| 96 |
msgid "Event"
|
| 97 |
msgstr ""
|
| 98 |
|
| 99 |
-
#: admin/class-admin.php:
|
| 100 |
msgid "Pageview"
|
| 101 |
msgstr ""
|
| 102 |
|
| 103 |
-
#: admin/class-admin.php:
|
| 104 |
msgid "Just the domain"
|
| 105 |
msgstr ""
|
| 106 |
|
| 107 |
-
#: admin/class-admin.php:
|
| 108 |
msgid "Full links"
|
| 109 |
msgstr ""
|
| 110 |
|
| 111 |
-
#: admin/class-admin.php:
|
| 112 |
msgid "Debug information"
|
| 113 |
msgstr ""
|
| 114 |
|
| 115 |
-
#: admin/class-admin.php:
|
| 116 |
msgid "Google Analytics by Yoast Premium"
|
| 117 |
msgstr ""
|
| 118 |
|
| 119 |
-
#: admin/class-admin.php:
|
| 120 |
msgid ""
|
| 121 |
"The premium version of Google Analytics by Yoast with more features and "
|
| 122 |
"support."
|
|
@@ -126,11 +126,11 @@ msgstr ""
|
|
| 126 |
msgid "Google Analytics by Yoast"
|
| 127 |
msgstr ""
|
| 128 |
|
| 129 |
-
#: admin/class-admin.php:
|
| 130 |
msgid "eCommerce tracking"
|
| 131 |
msgstr ""
|
| 132 |
|
| 133 |
-
#: admin/class-admin.php:
|
| 134 |
msgid ""
|
| 135 |
"Track your eCommerce data and transactions with this eCommerce extension "
|
| 136 |
"for Google Analytics."
|
| 2 |
# This file is distributed under the GPL v3.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
+
"Project-Id-Version: Google Analytics by Yoast 5.4.4\n"
|
| 6 |
"Report-Msgid-Bugs-To: "
|
| 7 |
"https://github.com/yoast/google-analytics-for-wordpress/issues\n"
|
| 8 |
+
"POT-Creation-Date: 2015-07-21 07:53:25+00:00\n"
|
| 9 |
"MIME-Version: 1.0\n"
|
| 10 |
"Content-Type: text/plain; charset=utf-8\n"
|
| 11 |
"Content-Transfer-Encoding: 8bit\n"
|
| 45 |
msgid "Dashboard"
|
| 46 |
msgstr ""
|
| 47 |
|
| 48 |
+
#: admin/class-admin-menu.php:242 admin/class-admin.php:320
|
| 49 |
#: admin/pages/settings.php:10
|
| 50 |
msgid "Settings"
|
| 51 |
msgstr ""
|
| 55 |
msgid "Extensions"
|
| 56 |
msgstr ""
|
| 57 |
|
| 58 |
+
#: admin/class-admin.php:91
|
| 59 |
msgid ""
|
| 60 |
"Yoast plugins share some code between them to make your site faster. As a "
|
| 61 |
"result of that, we need all Yoast plugins to be up to date. We've detected "
|
| 63 |
"date yet."
|
| 64 |
msgstr ""
|
| 65 |
|
| 66 |
+
#: admin/class-admin.php:128
|
| 67 |
msgid "Settings saved."
|
| 68 |
msgstr ""
|
| 69 |
|
| 70 |
+
#: admin/class-admin.php:135
|
| 71 |
msgid "There were no changes to save, please try again."
|
| 72 |
msgstr ""
|
| 73 |
|
| 74 |
+
#: admin/class-admin.php:179
|
| 75 |
msgid "The UA code needs to follow UA-XXXXXXXX-X format."
|
| 76 |
msgstr ""
|
| 77 |
|
| 78 |
+
#: admin/class-admin.php:317
|
| 79 |
msgid "FAQ"
|
| 80 |
msgstr ""
|
| 81 |
|
| 82 |
+
#: admin/class-admin.php:332
|
| 83 |
msgid ""
|
| 84 |
"If you want to track custom dimensions like page views per author or post "
|
| 85 |
"type, you should upgrade to the %1$spremium version of Google Analytics by "
|
| 86 |
"Yoast%2$s."
|
| 87 |
msgstr ""
|
| 88 |
|
| 89 |
+
#: admin/class-admin.php:334
|
| 90 |
msgid ""
|
| 91 |
"This will also give you email access to the support team at Yoast, who will "
|
| 92 |
"provide support on the plugin 24/7."
|
| 93 |
msgstr ""
|
| 94 |
|
| 95 |
+
#: admin/class-admin.php:472
|
| 96 |
msgid "Event"
|
| 97 |
msgstr ""
|
| 98 |
|
| 99 |
+
#: admin/class-admin.php:473
|
| 100 |
msgid "Pageview"
|
| 101 |
msgstr ""
|
| 102 |
|
| 103 |
+
#: admin/class-admin.php:484
|
| 104 |
msgid "Just the domain"
|
| 105 |
msgstr ""
|
| 106 |
|
| 107 |
+
#: admin/class-admin.php:485
|
| 108 |
msgid "Full links"
|
| 109 |
msgstr ""
|
| 110 |
|
| 111 |
+
#: admin/class-admin.php:505
|
| 112 |
msgid "Debug information"
|
| 113 |
msgstr ""
|
| 114 |
|
| 115 |
+
#: admin/class-admin.php:554
|
| 116 |
msgid "Google Analytics by Yoast Premium"
|
| 117 |
msgstr ""
|
| 118 |
|
| 119 |
+
#: admin/class-admin.php:555
|
| 120 |
msgid ""
|
| 121 |
"The premium version of Google Analytics by Yoast with more features and "
|
| 122 |
"support."
|
| 126 |
msgid "Google Analytics by Yoast"
|
| 127 |
msgstr ""
|
| 128 |
|
| 129 |
+
#: admin/class-admin.php:560
|
| 130 |
msgid "eCommerce tracking"
|
| 131 |
msgstr ""
|
| 132 |
|
| 133 |
+
#: admin/class-admin.php:561
|
| 134 |
msgid ""
|
| 135 |
"Track your eCommerce data and transactions with this eCommerce extension "
|
| 136 |
"for Google Analytics."
|
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Donate link: https://yoast.com/donate/
|
|
| 4 |
Tags: analytics, google analytics, statistics, tracking, stats, google, yoast
|
| 5 |
Requires at least: 3.8
|
| 6 |
Tested up to: 4.2
|
| 7 |
-
Stable tag: 5.4.
|
| 8 |
License: GPL v3
|
| 9 |
|
| 10 |
Track your WordPress site easily with the latest tracking codes and lots added data for search result pages and error pages.
|
|
@@ -51,6 +51,13 @@ This section describes how to install the plugin and get it working.
|
|
| 51 |
|
| 52 |
== Changelog ==
|
| 53 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
= 5.4.3 =
|
| 55 |
|
| 56 |
Release Date: July 15th, 2015
|
| 4 |
Tags: analytics, google analytics, statistics, tracking, stats, google, yoast
|
| 5 |
Requires at least: 3.8
|
| 6 |
Tested up to: 4.2
|
| 7 |
+
Stable tag: 5.4.4
|
| 8 |
License: GPL v3
|
| 9 |
|
| 10 |
Track your WordPress site easily with the latest tracking codes and lots added data for search result pages and error pages.
|
| 51 |
|
| 52 |
== Changelog ==
|
| 53 |
|
| 54 |
+
= 5.4.4 =
|
| 55 |
+
|
| 56 |
+
Release Date: July 21st, 2015
|
| 57 |
+
|
| 58 |
+
* Enhancements:
|
| 59 |
+
* Makes sure core functionality is only loaded when needed, improving admin performance and preventing compatibility issues with the upcoming 2.3 release of Yoast SEO.
|
| 60 |
+
|
| 61 |
= 5.4.3 =
|
| 62 |
|
| 63 |
Release Date: July 15th, 2015
|
vendor/autoload.php
CHANGED
|
@@ -4,4 +4,4 @@
|
|
| 4 |
|
| 5 |
require_once __DIR__ . '/composer' . '/autoload_real.php';
|
| 6 |
|
| 7 |
-
return
|
| 4 |
|
| 5 |
require_once __DIR__ . '/composer' . '/autoload_real.php';
|
| 6 |
|
| 7 |
+
return ComposerAutoloaderInit9ae6431b032404e885ebcf8c91d16573::getLoader();
|
vendor/autoload_52.php
CHANGED
|
@@ -4,4 +4,4 @@
|
|
| 4 |
|
| 5 |
require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
|
| 6 |
|
| 7 |
-
return
|
| 4 |
|
| 5 |
require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
|
| 6 |
|
| 7 |
+
return ComposerAutoloaderInit53167f8e3e0fb0da20bd42c09cbc6a23::getLoader();
|
vendor/composer/autoload_real.php
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
|
| 3 |
// autoload_real.php @generated by Composer
|
| 4 |
|
| 5 |
-
class
|
| 6 |
{
|
| 7 |
private static $loader;
|
| 8 |
|
|
@@ -19,9 +19,9 @@ class ComposerAutoloaderInit189ed1846ee2aec45332df80bf6cc5f0
|
|
| 19 |
return self::$loader;
|
| 20 |
}
|
| 21 |
|
| 22 |
-
spl_autoload_register(array('
|
| 23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
| 24 |
-
spl_autoload_unregister(array('
|
| 25 |
|
| 26 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
| 27 |
foreach ($map as $namespace => $path) {
|
|
@@ -44,7 +44,7 @@ class ComposerAutoloaderInit189ed1846ee2aec45332df80bf6cc5f0
|
|
| 44 |
}
|
| 45 |
}
|
| 46 |
|
| 47 |
-
function
|
| 48 |
{
|
| 49 |
require $file;
|
| 50 |
}
|
| 2 |
|
| 3 |
// autoload_real.php @generated by Composer
|
| 4 |
|
| 5 |
+
class ComposerAutoloaderInit9ae6431b032404e885ebcf8c91d16573
|
| 6 |
{
|
| 7 |
private static $loader;
|
| 8 |
|
| 19 |
return self::$loader;
|
| 20 |
}
|
| 21 |
|
| 22 |
+
spl_autoload_register(array('ComposerAutoloaderInit9ae6431b032404e885ebcf8c91d16573', 'loadClassLoader'), true, true);
|
| 23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
| 24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit9ae6431b032404e885ebcf8c91d16573', 'loadClassLoader'));
|
| 25 |
|
| 26 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
| 27 |
foreach ($map as $namespace => $path) {
|
| 44 |
}
|
| 45 |
}
|
| 46 |
|
| 47 |
+
function composerRequire9ae6431b032404e885ebcf8c91d16573($file)
|
| 48 |
{
|
| 49 |
require $file;
|
| 50 |
}
|
vendor/composer/autoload_real_52.php
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
|
| 3 |
// autoload_real_52.php generated by xrstf/composer-php52
|
| 4 |
|
| 5 |
-
class
|
| 6 |
private static $loader;
|
| 7 |
|
| 8 |
public static function loadClassLoader($class) {
|
|
@@ -19,9 +19,9 @@ class ComposerAutoloaderInitfb02493b76c5d07da72bd2ffb8842c1b {
|
|
| 19 |
return self::$loader;
|
| 20 |
}
|
| 21 |
|
| 22 |
-
spl_autoload_register(array('
|
| 23 |
self::$loader = $loader = new xrstf_Composer52_ClassLoader();
|
| 24 |
-
spl_autoload_unregister(array('
|
| 25 |
|
| 26 |
$vendorDir = dirname(dirname(__FILE__));
|
| 27 |
$baseDir = dirname($vendorDir);
|
| 2 |
|
| 3 |
// autoload_real_52.php generated by xrstf/composer-php52
|
| 4 |
|
| 5 |
+
class ComposerAutoloaderInit53167f8e3e0fb0da20bd42c09cbc6a23 {
|
| 6 |
private static $loader;
|
| 7 |
|
| 8 |
public static function loadClassLoader($class) {
|
| 19 |
return self::$loader;
|
| 20 |
}
|
| 21 |
|
| 22 |
+
spl_autoload_register(array('ComposerAutoloaderInit53167f8e3e0fb0da20bd42c09cbc6a23', 'loadClassLoader'), true /*, true */);
|
| 23 |
self::$loader = $loader = new xrstf_Composer52_ClassLoader();
|
| 24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit53167f8e3e0fb0da20bd42c09cbc6a23', 'loadClassLoader'));
|
| 25 |
|
| 26 |
$vendorDir = dirname(dirname(__FILE__));
|
| 27 |
$baseDir = dirname($vendorDir);
|
