Version Description
- Fix custom button whitespace saving issue
Download this release
Release Info
Developer | jorbin |
Plugin | WordPress Share Buttons Plugin – AddThis |
Version | 2.2.2 |
Comparing to | |
See all releases |
Code changes from version 2.2.1 to 2.2.2
- addthis_settings_functions.php +4 -3
- addthis_social_widget.php +4 -4
- readme.txt +7 -4
addthis_settings_functions.php
CHANGED
@@ -39,18 +39,19 @@ function addthis_kses($string)
|
|
39 |
$pretags = array( 'g:plusone:', 'fb:like:', 'tw:');
|
40 |
$posttags = array('gplusone', 'fblike', 'tw');
|
41 |
|
42 |
-
foreach($pretags as $attr)
|
43 |
{
|
44 |
$pre_pattern[] = '/'.$attr.'/';
|
|
|
45 |
}
|
46 |
-
foreach($posttags as $attr)
|
47 |
{
|
48 |
$post_pattern[] = '/[^_]'.$attr.'/';
|
|
|
49 |
}
|
50 |
$temp_string = preg_replace( $pre_pattern, $posttags, $string);
|
51 |
$new_temp_string = wp_kses($temp_string, $mytags);
|
52 |
$new_string = preg_replace( $post_pattern, $pretags, $new_temp_string);
|
53 |
-
|
54 |
// Add in our %s so that the url and title get added properly
|
55 |
|
56 |
|
39 |
$pretags = array( 'g:plusone:', 'fb:like:', 'tw:');
|
40 |
$posttags = array('gplusone', 'fblike', 'tw');
|
41 |
|
42 |
+
foreach($pretags as $i => $attr)
|
43 |
{
|
44 |
$pre_pattern[] = '/'.$attr.'/';
|
45 |
+
$pretags[$i] = ' '.$attr;
|
46 |
}
|
47 |
+
foreach($posttags as $i => $attr)
|
48 |
{
|
49 |
$post_pattern[] = '/[^_]'.$attr.'/';
|
50 |
+
$posttags[$i] = ' '.$attr;
|
51 |
}
|
52 |
$temp_string = preg_replace( $pre_pattern, $posttags, $string);
|
53 |
$new_temp_string = wp_kses($temp_string, $mytags);
|
54 |
$new_string = preg_replace( $post_pattern, $pretags, $new_temp_string);
|
|
|
55 |
// Add in our %s so that the url and title get added properly
|
56 |
|
57 |
|
addthis_social_widget.php
CHANGED
@@ -26,14 +26,14 @@ else return;
|
|
26 |
* Plugin Name: AddThis Social Bookmarking Widget
|
27 |
* Plugin URI: http://www.addthis.com
|
28 |
* Description: Help your visitor promote your site! The AddThis Social Bookmarking Widget allows any visitor to bookmark your site easily with many popular services. Sign up for an AddThis.com account to see how your visitors are sharing your content--which services they're using for sharing, which content is shared the most, and more. It's all free--even the pretty charts and graphs.
|
29 |
-
* Version: 2.2.
|
30 |
*
|
31 |
* Author: The AddThis Team
|
32 |
* Author URI: http://www.addthis.com/blog
|
33 |
*/
|
34 |
|
35 |
define( 'addthis_style_default' , 'small_toolbox_with_share');
|
36 |
-
define( 'ADDTHIS_PLUGIN_VERSION', '2.2.
|
37 |
|
38 |
$addthis_settings = array();
|
39 |
$addthis_settings['isdropdown'] = 'true';
|
@@ -1306,7 +1306,7 @@ function addthis_output_script($return = false )
|
|
1306 |
|
1307 |
$script = "\n<!-- AddThis Button Begin -->\n"
|
1308 |
.'<script type="text/javascript">'
|
1309 |
-
."var addthis_product = 'wpp-
|
1310 |
|
1311 |
|
1312 |
$pub = (isset($options['profile'])) ? $options['profile'] : false ;
|
@@ -1705,7 +1705,7 @@ function addthis_plugin_options_php4() {
|
|
1705 |
<td><input type="text" name="addthis_settings[addthis_brand]" value="<?php echo $addthis_brand; ?>" /></td>
|
1706 |
</tr>
|
1707 |
<tr valign="top">
|
1708 |
-
<th scope="row"><?php _e("<a href='http://www.addthis.com/help/client-api#configuration-sharing-templates'>Twitter Template</a>(
|
1709 |
<td><input type="text" name="addthis_settings[addthis_twitter_template]" value="<?php echo $addthis_twitter_template; ?>" /></td>
|
1710 |
</tr>
|
1711 |
<tr valign="top">
|
26 |
* Plugin Name: AddThis Social Bookmarking Widget
|
27 |
* Plugin URI: http://www.addthis.com
|
28 |
* Description: Help your visitor promote your site! The AddThis Social Bookmarking Widget allows any visitor to bookmark your site easily with many popular services. Sign up for an AddThis.com account to see how your visitors are sharing your content--which services they're using for sharing, which content is shared the most, and more. It's all free--even the pretty charts and graphs.
|
29 |
+
* Version: 2.2.2
|
30 |
*
|
31 |
* Author: The AddThis Team
|
32 |
* Author URI: http://www.addthis.com/blog
|
33 |
*/
|
34 |
|
35 |
define( 'addthis_style_default' , 'small_toolbox_with_share');
|
36 |
+
define( 'ADDTHIS_PLUGIN_VERSION', '2.2.2');
|
37 |
|
38 |
$addthis_settings = array();
|
39 |
$addthis_settings['isdropdown'] = 'true';
|
1306 |
|
1307 |
$script = "\n<!-- AddThis Button Begin -->\n"
|
1308 |
.'<script type="text/javascript">'
|
1309 |
+
."var addthis_product = 'wpp-262';\n";
|
1310 |
|
1311 |
|
1312 |
$pub = (isset($options['profile'])) ? $options['profile'] : false ;
|
1705 |
<td><input type="text" name="addthis_settings[addthis_brand]" value="<?php echo $addthis_brand; ?>" /></td>
|
1706 |
</tr>
|
1707 |
<tr valign="top">
|
1708 |
+
<th scope="row"><?php _e("<a href='http://www.addthis.com/help/client-api#configuration-sharing-templates'>Twitter Template</a> (not for tweet button) :", 'addthis_trans_domain' ); ?></th>
|
1709 |
<td><input type="text" name="addthis_settings[addthis_twitter_template]" value="<?php echo $addthis_twitter_template; ?>" /></td>
|
1710 |
</tr>
|
1711 |
<tr valign="top">
|
readme.txt
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
-
=== AddThis
|
2 |
Contributors: _mjk_, jorbin
|
3 |
Tags: share, addthis, social, bookmark, sharing, bookmarking, widget,AddThis, addtoany, aim, bookmark, buzz, del.icio.us, Digg,e-mail, email, Facebook, google bookmarks, google buzz, myspace,network, NewsVine, Reddit, Share, share this, sharethis, social, socialize, stumbleupon, twitter, windows live, yahoo buzz
|
4 |
Requires at least: 2.9
|
5 |
-
Tested up to: 3.2.
|
6 |
-
Stable tag: 2.2.
|
7 |
|
8 |
-
The AddThis Social Bookmarking Widget allows any visitor to bookmark and share your site easily with
|
9 |
|
10 |
== Description ==
|
11 |
Get more traffic back to your site by installing the AddThis WordPress plugin. With AddThis, your users can promote your content by sharing to 295 of the most popular social networking and bookmarking sites (like Facebook, Twitter, Digg, StumbleUpon and MySpace). Our button is small, unobtrusive, quick to load and recognized all over the web. We also optionaly support address bar sharing in modern browsers.
|
@@ -74,6 +74,9 @@ In the screen options you can enable the AddThis meta box. Check the box and sa
|
|
74 |
PHP 5+ is preferred; PHP 4 is supported.
|
75 |
|
76 |
== Changelog ==
|
|
|
|
|
|
|
77 |
= 2.2.1 =
|
78 |
* Fix compatability with 3.2
|
79 |
* Fix over agressive regular expression
|
1 |
+
=== AddThis ===
|
2 |
Contributors: _mjk_, jorbin
|
3 |
Tags: share, addthis, social, bookmark, sharing, bookmarking, widget,AddThis, addtoany, aim, bookmark, buzz, del.icio.us, Digg,e-mail, email, Facebook, google bookmarks, google buzz, myspace,network, NewsVine, Reddit, Share, share this, sharethis, social, socialize, stumbleupon, twitter, windows live, yahoo buzz
|
4 |
Requires at least: 2.9
|
5 |
+
Tested up to: 3.2.1
|
6 |
+
Stable tag: 2.2.2
|
7 |
|
8 |
+
The AddThis Social Bookmarking Widget allows any visitor to bookmark and share your site easily with over 300 popular services including Google +1, Facebook Like and Twitter.
|
9 |
|
10 |
== Description ==
|
11 |
Get more traffic back to your site by installing the AddThis WordPress plugin. With AddThis, your users can promote your content by sharing to 295 of the most popular social networking and bookmarking sites (like Facebook, Twitter, Digg, StumbleUpon and MySpace). Our button is small, unobtrusive, quick to load and recognized all over the web. We also optionaly support address bar sharing in modern browsers.
|
74 |
PHP 5+ is preferred; PHP 4 is supported.
|
75 |
|
76 |
== Changelog ==
|
77 |
+
= 2.2.2 =
|
78 |
+
* Fix custom button whitespace saving issue
|
79 |
+
|
80 |
= 2.2.1 =
|
81 |
* Fix compatability with 3.2
|
82 |
* Fix over agressive regular expression
|