Version Description
= 7.0.0 =
This is a major release. Please back up your site before upgrading.
= 6.0.0 =
This is a major release. Please back up your site before upgrading.
Download this release
Release Info
Developer | chriscct7 |
Plugin | Google Analytics for WordPress by MonsterInsights |
Version | 7.8.2 |
Comparing to | |
See all releases |
Code changes from version 7.8.1 to 7.8.2
assets/lib/pandora/class-am-dashboard-widget-extend-feed.php
DELETED
@@ -1,130 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
if ( ! class_exists( 'AM_Dashboard_Widget_Extend_Feed' ) ) {
|
4 |
-
/**
|
5 |
-
* Awesome Motive Events and News Feed.
|
6 |
-
*
|
7 |
-
* This appends additional blog feeds to the WordPress Events and News Feed Widget
|
8 |
-
* available in the WP-Admin Dashboard.
|
9 |
-
*
|
10 |
-
* @package AwesomeMotive
|
11 |
-
* @author AwesomeMotive Team
|
12 |
-
* @license GPL-2.0+
|
13 |
-
* @copyright Copyright (c) 2018, Awesome Motive LLC
|
14 |
-
* @version 1.0.0
|
15 |
-
*/
|
16 |
-
class AM_Dashboard_Widget_Extend_Feed {
|
17 |
-
|
18 |
-
/**
|
19 |
-
* The number of feed items to show.
|
20 |
-
*
|
21 |
-
* @since 1.0.0
|
22 |
-
*
|
23 |
-
* @var int
|
24 |
-
*/
|
25 |
-
const FEED_COUNT = 6;
|
26 |
-
|
27 |
-
/**
|
28 |
-
* Construct.
|
29 |
-
*
|
30 |
-
* @since 1.0.0
|
31 |
-
*/
|
32 |
-
public function __construct() {
|
33 |
-
|
34 |
-
// Actions.
|
35 |
-
add_action( 'wp_feed_options', array( $this, 'dashboard_update_feed_urls' ), 10, 2 );
|
36 |
-
|
37 |
-
// Filters.
|
38 |
-
add_filter( 'dashboard_secondary_items', array( $this, 'dashboard_items_count' ) );
|
39 |
-
}
|
40 |
-
|
41 |
-
/**
|
42 |
-
* Set the number of feed items to show.
|
43 |
-
*
|
44 |
-
* @since 1.0.0
|
45 |
-
*
|
46 |
-
* @return int Count of feed items.
|
47 |
-
*/
|
48 |
-
public function dashboard_items_count() {
|
49 |
-
|
50 |
-
/**
|
51 |
-
* Apply the filters am_dashboard_feed_count for letting an admin
|
52 |
-
* override this count.
|
53 |
-
*/
|
54 |
-
return (int) apply_filters( 'am_dashboard_feed_count', self::FEED_COUNT );
|
55 |
-
}
|
56 |
-
|
57 |
-
/**
|
58 |
-
* Update the planet feed to add other AM blog feeds.
|
59 |
-
*
|
60 |
-
* @since 1.0.0
|
61 |
-
*
|
62 |
-
* @param object $feed SimplePie feed object (passed by reference).
|
63 |
-
* @param string $url URL of feed to retrieve (original planet feed url). If an array of URLs, the feeds are merged.
|
64 |
-
*/
|
65 |
-
public function dashboard_update_feed_urls( $feed, $url ) {
|
66 |
-
|
67 |
-
global $pagenow;
|
68 |
-
|
69 |
-
// Return early if not on the right page.
|
70 |
-
if ( 'admin-ajax.php' !== $pagenow ) {
|
71 |
-
return;
|
72 |
-
}
|
73 |
-
|
74 |
-
/**
|
75 |
-
* Return early if not on the right feed.
|
76 |
-
* We want to modify the feed URLs only for the
|
77 |
-
* WordPress Events & News Dashboard Widget
|
78 |
-
*/
|
79 |
-
if ( strpos( $url, 'planet.wordpress.org' ) === false ) {
|
80 |
-
return;
|
81 |
-
}
|
82 |
-
|
83 |
-
// Build the feed sources.
|
84 |
-
$all_feed_urls = $this->get_feed_urls( $url );
|
85 |
-
|
86 |
-
// Update the feed sources.
|
87 |
-
$feed->set_feed_url( $all_feed_urls );
|
88 |
-
}
|
89 |
-
|
90 |
-
/**
|
91 |
-
* Get the feed URLs for various active AM Products.
|
92 |
-
*
|
93 |
-
* @since 1.0.0
|
94 |
-
*
|
95 |
-
* @param string $url Planet Feed URL.
|
96 |
-
*
|
97 |
-
* @return array Array of Feed URLs.
|
98 |
-
*/
|
99 |
-
public function get_feed_urls( $url ) {
|
100 |
-
|
101 |
-
// Initialize the feeds array.
|
102 |
-
$feed_urls = array(
|
103 |
-
'https://www.wpbeginner.com/feed/',
|
104 |
-
'https://www.isitwp.com/feed/',
|
105 |
-
$url,
|
106 |
-
);
|
107 |
-
|
108 |
-
// Check if MonsterInsights is active.
|
109 |
-
if ( function_exists( 'MonsterInsights' ) ) {
|
110 |
-
$feed_urls[] = 'https://www.monsterinsights.com/feed/';
|
111 |
-
}
|
112 |
-
|
113 |
-
// Check if WPForms is active.
|
114 |
-
if ( function_exists( 'wpforms' ) ) {
|
115 |
-
$feed_urls[] = 'https://wpforms.com/feed/';
|
116 |
-
}
|
117 |
-
|
118 |
-
// Check if OptinMonster is active.
|
119 |
-
if ( class_exists( 'OMAPI', false ) ) {
|
120 |
-
$feed_urls[] = 'https://optinmonster.com/feed/';
|
121 |
-
}
|
122 |
-
|
123 |
-
// Return the feed URLs.
|
124 |
-
return array_unique( $feed_urls );
|
125 |
-
}
|
126 |
-
}
|
127 |
-
|
128 |
-
// Create an instance.
|
129 |
-
new AM_Dashboard_Widget_Extend_Feed();
|
130 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
googleanalytics.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* Author: MonsterInsights
|
7 |
* Author URI: https://www.monsterinsights.com/?utm_source=liteplugin&utm_medium=pluginheader&utm_campaign=authoruri&utm_content=7%2E0%2E0
|
8 |
*
|
9 |
-
* Version: 7.8.
|
10 |
* Requires at least: 3.8.0
|
11 |
* Tested up to: 5.1.1
|
12 |
*
|
@@ -69,7 +69,7 @@ final class MonsterInsights_Lite {
|
|
69 |
* @access public
|
70 |
* @var string $version Plugin version.
|
71 |
*/
|
72 |
-
public $version = '7.8.
|
73 |
|
74 |
/**
|
75 |
* Plugin file.
|
@@ -493,7 +493,6 @@ final class MonsterInsights_Lite {
|
|
493 |
// Lite and Pro files
|
494 |
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'assets/lib/pandora/class-am-notification.php';
|
495 |
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'assets/lib/pandora/class-am-deactivation-survey.php';
|
496 |
-
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'assets/lib/pandora/class-am-dashboard-widget-extend-feed.php';
|
497 |
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/ajax.php';
|
498 |
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/admin.php';
|
499 |
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/common.php';
|
6 |
* Author: MonsterInsights
|
7 |
* Author URI: https://www.monsterinsights.com/?utm_source=liteplugin&utm_medium=pluginheader&utm_campaign=authoruri&utm_content=7%2E0%2E0
|
8 |
*
|
9 |
+
* Version: 7.8.2
|
10 |
* Requires at least: 3.8.0
|
11 |
* Tested up to: 5.1.1
|
12 |
*
|
69 |
* @access public
|
70 |
* @var string $version Plugin version.
|
71 |
*/
|
72 |
+
public $version = '7.8.2';
|
73 |
|
74 |
/**
|
75 |
* Plugin file.
|
493 |
// Lite and Pro files
|
494 |
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'assets/lib/pandora/class-am-notification.php';
|
495 |
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'assets/lib/pandora/class-am-deactivation-survey.php';
|
|
|
496 |
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/ajax.php';
|
497 |
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/admin.php';
|
498 |
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/admin/common.php';
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.wpbeginner.com/wpbeginner-needs-your-help/
|
|
4 |
Tags: WordPress analytics, google analytics, google analytics dashboard, google analytics widget, WooCommerce stats, analytics dashboard, universal google analytics, statistics, tracking, stats, google, google analytics by yoast, ga, monster insights, monsterinsights, universal analytics, web stats, ecommerce, ecommerce tracking
|
5 |
Requires at least: 3.8.0
|
6 |
Tested up to: 5.3
|
7 |
-
Stable tag: 7.8.
|
8 |
License: GPL v3
|
9 |
|
10 |
The best Google Analytics plugin for WordPress. See how visitors find and use your website, so you can keep them coming back.
|
4 |
Tags: WordPress analytics, google analytics, google analytics dashboard, google analytics widget, WooCommerce stats, analytics dashboard, universal google analytics, statistics, tracking, stats, google, google analytics by yoast, ga, monster insights, monsterinsights, universal analytics, web stats, ecommerce, ecommerce tracking
|
5 |
Requires at least: 3.8.0
|
6 |
Tested up to: 5.3
|
7 |
+
Stable tag: 7.8.2
|
8 |
License: GPL v3
|
9 |
|
10 |
The best Google Analytics plugin for WordPress. See how visitors find and use your website, so you can keep them coming back.
|