Version Description
- Enhancement: remove analytics option from Advanced Settings page
Download this release
Release Info
Developer | hngu_shareaholic |
Plugin | WordPress Social Tools, Related Posts, Monetization – Shareaholic |
Version | 7.6.1.6 |
Comparing to | |
See all releases |
Code changes from version 7.6.1.5 to 7.6.1.6
- admin.php +1 -5
- public.php +0 -19
- readme.txt +7 -1
- shareaholic.php +3 -3
- six_to_seven.php +0 -1
- templates/advanced_settings.php +0 -6
- utilities.php +0 -2
admin.php
CHANGED
@@ -322,7 +322,7 @@ class ShareaholicAdmin {
|
|
322 |
if(isset($_POST['already_submitted']) && $_POST['already_submitted'] == 'Y' &&
|
323 |
check_admin_referer($action, 'nonce_field')) {
|
324 |
echo "<div class='updated settings_updated'><p><strong>". sprintf(__('Settings successfully saved', 'shareaholic')) . "</strong></p></div>";
|
325 |
-
foreach (array('
|
326 |
if (isset($settings[$setting]) &&
|
327 |
!isset($_POST['shareaholic'][$setting]) &&
|
328 |
$settings[$setting] == 'on') {
|
@@ -340,10 +340,6 @@ class ShareaholicAdmin {
|
|
340 |
ShareaholicUtilities::update_options(array('api_key' => $_POST['shareaholic']['api_key']));
|
341 |
}
|
342 |
|
343 |
-
if (isset($_POST['shareaholic']['disable_tracking'])) {
|
344 |
-
ShareaholicUtilities::update_options(array('disable_tracking' => $_POST['shareaholic']['disable_tracking']));
|
345 |
-
}
|
346 |
-
|
347 |
if (isset($_POST['shareaholic']['disable_og_tags'])) {
|
348 |
ShareaholicUtilities::update_options(array('disable_og_tags' => $_POST['shareaholic']['disable_og_tags']));
|
349 |
}
|
322 |
if(isset($_POST['already_submitted']) && $_POST['already_submitted'] == 'Y' &&
|
323 |
check_admin_referer($action, 'nonce_field')) {
|
324 |
echo "<div class='updated settings_updated'><p><strong>". sprintf(__('Settings successfully saved', 'shareaholic')) . "</strong></p></div>";
|
325 |
+
foreach (array('disable_og_tags', 'disable_admin_bar_menu', 'disable_debug_info', 'disable_internal_share_counts_api') as $setting) {
|
326 |
if (isset($settings[$setting]) &&
|
327 |
!isset($_POST['shareaholic'][$setting]) &&
|
328 |
$settings[$setting] == 'on') {
|
340 |
ShareaholicUtilities::update_options(array('api_key' => $_POST['shareaholic']['api_key']));
|
341 |
}
|
342 |
|
|
|
|
|
|
|
|
|
343 |
if (isset($_POST['shareaholic']['disable_og_tags'])) {
|
344 |
ShareaholicUtilities::update_options(array('disable_og_tags' => $_POST['shareaholic']['disable_og_tags']));
|
345 |
}
|
public.php
CHANGED
@@ -49,7 +49,6 @@ class ShareaholicPublic {
|
|
49 |
// should not discourage anyone in the future. -DG
|
50 |
ShareaholicDeprecation::destroy_all();
|
51 |
self::script_tag();
|
52 |
-
self::tracking_meta_tag();
|
53 |
self::shareaholic_tags();
|
54 |
self::draw_og_tags();
|
55 |
}
|
@@ -90,17 +89,6 @@ class ShareaholicPublic {
|
|
90 |
|
91 |
return self::canvas($attributes['id'], $attributes['app'], $title, $link, $summary);
|
92 |
}
|
93 |
-
|
94 |
-
/**
|
95 |
-
* Draws the analytics disabling meta tag, if the user
|
96 |
-
* has asked for analytics to be disabled.
|
97 |
-
*/
|
98 |
-
public static function tracking_meta_tag() {
|
99 |
-
$settings = ShareaholicUtilities::get_settings();
|
100 |
-
if ($settings['disable_tracking'] == "on") {
|
101 |
-
echo '<meta name="shareaholic:analytics" content="disabled" />';
|
102 |
-
}
|
103 |
-
}
|
104 |
|
105 |
|
106 |
/**
|
@@ -524,12 +512,6 @@ class ShareaholicPublic {
|
|
524 |
exit;
|
525 |
}
|
526 |
|
527 |
-
if (ShareaholicUtilities::get_option('disable_tracking') == NULL || ShareaholicUtilities::get_option('disable_tracking') == "off"){
|
528 |
-
$analytics_status = "on";
|
529 |
-
} else {
|
530 |
-
$analytics_status = "off";
|
531 |
-
}
|
532 |
-
|
533 |
if (ShareaholicUtilities::get_option('disable_internal_share_counts_api') == NULL || ShareaholicUtilities::get_option('disable_internal_share_counts_api') == "off"){
|
534 |
$server_side_share_count_status = "on";
|
535 |
} else {
|
@@ -579,7 +561,6 @@ class ShareaholicPublic {
|
|
579 |
'recommendations' => ShareaholicUtilities::get_option('recommendations'),
|
580 |
),
|
581 |
'advanced_settings' => array (
|
582 |
-
'analytics' => $analytics_status,
|
583 |
'server_side_share_count_api' => $server_side_share_count_status,
|
584 |
)
|
585 |
);
|
49 |
// should not discourage anyone in the future. -DG
|
50 |
ShareaholicDeprecation::destroy_all();
|
51 |
self::script_tag();
|
|
|
52 |
self::shareaholic_tags();
|
53 |
self::draw_og_tags();
|
54 |
}
|
89 |
|
90 |
return self::canvas($attributes['id'], $attributes['app'], $title, $link, $summary);
|
91 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
|
93 |
|
94 |
/**
|
512 |
exit;
|
513 |
}
|
514 |
|
|
|
|
|
|
|
|
|
|
|
|
|
515 |
if (ShareaholicUtilities::get_option('disable_internal_share_counts_api') == NULL || ShareaholicUtilities::get_option('disable_internal_share_counts_api') == "off"){
|
516 |
$server_side_share_count_status = "on";
|
517 |
} else {
|
561 |
'recommendations' => ShareaholicUtilities::get_option('recommendations'),
|
562 |
),
|
563 |
'advanced_settings' => array (
|
|
|
564 |
'server_side_share_count_api' => $server_side_share_count_status,
|
565 |
)
|
566 |
);
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: shareaholic
|
|
3 |
Tags: sexybookmarks, shareaholic, shareholic, recommendations, related content, cookie consent, share buttons, email button, social sharing, social bookmarking, share image, image sharing, follow buttons, floated share buttons, analytics, social media, social plugin
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 4.2.1
|
6 |
-
Stable tag: 7.6.1.
|
7 |
|
8 |
The easiest, most effective way to grow your website traffic, effectively engage your audience, monetize, and gain insights for free.
|
9 |
|
@@ -170,6 +170,9 @@ Please see here: [Usage & Installation Instructions](http://support.shareaholic.
|
|
170 |
|
171 |
== Changelog ==
|
172 |
|
|
|
|
|
|
|
173 |
= 7.6.1.5 =
|
174 |
* Enhancement: added support for Yummly and Fancy server-side share counts
|
175 |
|
@@ -1207,6 +1210,9 @@ Please see here: [Usage & Installation Instructions](http://support.shareaholic.
|
|
1207 |
|
1208 |
== Upgrade Notice ==
|
1209 |
|
|
|
|
|
|
|
1210 |
= 7.6.1.5 =
|
1211 |
* Enhancement: added support for Yummly and Fancy server-side share counts
|
1212 |
|
3 |
Tags: sexybookmarks, shareaholic, shareholic, recommendations, related content, cookie consent, share buttons, email button, social sharing, social bookmarking, share image, image sharing, follow buttons, floated share buttons, analytics, social media, social plugin
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 4.2.1
|
6 |
+
Stable tag: 7.6.1.6
|
7 |
|
8 |
The easiest, most effective way to grow your website traffic, effectively engage your audience, monetize, and gain insights for free.
|
9 |
|
170 |
|
171 |
== Changelog ==
|
172 |
|
173 |
+
= 7.6.1.6 =
|
174 |
+
* Enhancement: remove analytics option from Advanced Settings page
|
175 |
+
|
176 |
= 7.6.1.5 =
|
177 |
* Enhancement: added support for Yummly and Fancy server-side share counts
|
178 |
|
1210 |
|
1211 |
== Upgrade Notice ==
|
1212 |
|
1213 |
+
= 7.6.1.6 =
|
1214 |
+
* Enhancement: remove analytics option from Advanced Settings page
|
1215 |
+
|
1216 |
= 7.6.1.5 =
|
1217 |
* Enhancement: added support for Yummly and Fancy server-side share counts
|
1218 |
|
shareaholic.php
CHANGED
@@ -3,14 +3,14 @@
|
|
3 |
* The main file!
|
4 |
*
|
5 |
* @package shareaholic
|
6 |
-
* @version 7.6.1.
|
7 |
*/
|
8 |
|
9 |
/*
|
10 |
Plugin Name: Shareaholic | share buttons, analytics, related content
|
11 |
Plugin URI: https://shareaholic.com/publishers/
|
12 |
Description: Whether you want to get people sharing, grow your fans, make money, or know who's reading your content, Shareaholic will help you get it done. See <a href="admin.php?page=shareaholic-settings">configuration panel</a> for more settings.
|
13 |
-
Version: 7.6.1.
|
14 |
Author: Shareaholic
|
15 |
Author URI: https://shareaholic.com
|
16 |
Text Domain: shareaholic
|
@@ -64,7 +64,7 @@ if (!class_exists('Shareaholic')) {
|
|
64 |
const CM_API_URL = 'https://cm-web.shareaholic.com'; // uses static IPs for firewall whitelisting
|
65 |
const REC_API_URL = 'http://recommendations.shareaholic.com';
|
66 |
|
67 |
-
const VERSION = '7.6.1.
|
68 |
|
69 |
/**
|
70 |
* Starts off as false so that ::get_instance() returns
|
3 |
* The main file!
|
4 |
*
|
5 |
* @package shareaholic
|
6 |
+
* @version 7.6.1.6
|
7 |
*/
|
8 |
|
9 |
/*
|
10 |
Plugin Name: Shareaholic | share buttons, analytics, related content
|
11 |
Plugin URI: https://shareaholic.com/publishers/
|
12 |
Description: Whether you want to get people sharing, grow your fans, make money, or know who's reading your content, Shareaholic will help you get it done. See <a href="admin.php?page=shareaholic-settings">configuration panel</a> for more settings.
|
13 |
+
Version: 7.6.1.6
|
14 |
Author: Shareaholic
|
15 |
Author URI: https://shareaholic.com
|
16 |
Text Domain: shareaholic
|
64 |
const CM_API_URL = 'https://cm-web.shareaholic.com'; // uses static IPs for firewall whitelisting
|
65 |
const REC_API_URL = 'http://recommendations.shareaholic.com';
|
66 |
|
67 |
+
const VERSION = '7.6.1.6';
|
68 |
|
69 |
/**
|
70 |
* Starts off as false so that ::get_instance() returns
|
six_to_seven.php
CHANGED
@@ -515,7 +515,6 @@ class ShareaholicSixToSeven {
|
|
515 |
$analytics_settings = get_option('ShareaholicAnalytics');
|
516 |
$sexybookmarks_settings = get_option('SexyBookmarks');
|
517 |
|
518 |
-
$new_shareaholic_settings['disable_tracking'] = (bool)$analytics_settings['pubGaSocial'];
|
519 |
$new_shareaholic_settings['disable_og_tags'] = $sexybookmarks_settings['ogtags'] == '0' ? 'on' : 'off';
|
520 |
|
521 |
ShareaholicUtilities::update_options($new_shareaholic_settings);
|
515 |
$analytics_settings = get_option('ShareaholicAnalytics');
|
516 |
$sexybookmarks_settings = get_option('SexyBookmarks');
|
517 |
|
|
|
518 |
$new_shareaholic_settings['disable_og_tags'] = $sexybookmarks_settings['ogtags'] == '0' ? 'on' : 'off';
|
519 |
|
520 |
ShareaholicUtilities::update_options($new_shareaholic_settings);
|
templates/advanced_settings.php
CHANGED
@@ -13,12 +13,6 @@
|
|
13 |
<div class='clear'>
|
14 |
<fieldset class="app">
|
15 |
<legend><h2><?php _e('Advanced', 'shareaholic'); ?></h2></legend>
|
16 |
-
<input type='checkbox' id='tracking' name='shareaholic[disable_tracking]' class='check'
|
17 |
-
<?php if (isset($settings['disable_tracking'])) { ?>
|
18 |
-
<?php echo ($settings['disable_tracking'] == 'on' ? 'checked' : '') ?>
|
19 |
-
<?php } ?>>
|
20 |
-
<label style="display: inline-block; font-size:12px;" for="tracking"><?php echo sprintf(__('Disable Analytics', 'shareaholic')); ?> <?php echo sprintf(__('(it is recommended NOT to disable analytics)', 'shareaholic')); ?></label>
|
21 |
-
<br />
|
22 |
<input type='checkbox' id='og_tags' name='shareaholic[disable_og_tags]' class='check'
|
23 |
<?php if (isset($settings['disable_og_tags'])) { ?>
|
24 |
<?php echo ($settings['disable_og_tags'] == 'on' ? 'checked' : '') ?>
|
13 |
<div class='clear'>
|
14 |
<fieldset class="app">
|
15 |
<legend><h2><?php _e('Advanced', 'shareaholic'); ?></h2></legend>
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
<input type='checkbox' id='og_tags' name='shareaholic[disable_og_tags]' class='check'
|
17 |
<?php if (isset($settings['disable_og_tags'])) { ?>
|
18 |
<?php echo ($settings['disable_og_tags'] == 'on' ? 'checked' : '') ?>
|
utilities.php
CHANGED
@@ -77,7 +77,6 @@ class ShareaholicUtilities {
|
|
77 |
*/
|
78 |
private static function defaults() {
|
79 |
return array(
|
80 |
-
'disable_tracking' => 'off',
|
81 |
'disable_admin_bar_menu' => 'off',
|
82 |
'disable_debug_info' => 'off',
|
83 |
'disable_internal_share_counts_api' => 'off',
|
@@ -327,7 +326,6 @@ class ShareaholicUtilities {
|
|
327 |
global $wpdb;
|
328 |
$results = $wpdb->query( "UPDATE $wpdb->postmeta SET `meta_key` = 'shareaholic_disable_open_graph_tags' WHERE `meta_key` = 'Hide OgTags'" );
|
329 |
$results = $wpdb->query( "UPDATE $wpdb->postmeta SET `meta_key` = 'shareaholic_disable_share_buttons' WHERE `meta_key` = 'Hide SexyBookmarks'" );
|
330 |
-
self::update_options(array('disable_tracking' => 'off'));
|
331 |
self::update_options(array('metakey_6to7_upgraded' => 'true'));
|
332 |
}
|
333 |
|
77 |
*/
|
78 |
private static function defaults() {
|
79 |
return array(
|
|
|
80 |
'disable_admin_bar_menu' => 'off',
|
81 |
'disable_debug_info' => 'off',
|
82 |
'disable_internal_share_counts_api' => 'off',
|
326 |
global $wpdb;
|
327 |
$results = $wpdb->query( "UPDATE $wpdb->postmeta SET `meta_key` = 'shareaholic_disable_open_graph_tags' WHERE `meta_key` = 'Hide OgTags'" );
|
328 |
$results = $wpdb->query( "UPDATE $wpdb->postmeta SET `meta_key` = 'shareaholic_disable_share_buttons' WHERE `meta_key` = 'Hide SexyBookmarks'" );
|
|
|
329 |
self::update_options(array('metakey_6to7_upgraded' => 'true'));
|
330 |
}
|
331 |
|