AddToAny Share Buttons - Version 1.2.9.3

Version Description

  • Prevent script output in feeds on some sites
  • Remove constants for old WP versions (below 2.6)
Download this release

Release Info

Developer micropat
Plugin Icon 128x128 AddToAny Share Buttons
Version 1.2.9.3
Comparing to
See all releases

Code changes from version 1.2.9.2 to 1.2.9.3

Files changed (3) hide show
  1. README.txt +8 -4
  2. add-to-any.php +5 -13
  3. addtoany.admin.php +6 -9
README.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Share Buttons by AddToAny ===
2
- Contributors: micropat
3
  Tags: sharing, share, share this, bookmarking, social, share button, share buttons, share links, social share, social sharing, social bookmarking, social bookmarks, bookmark, bookmarks, save, Post, posts, page, pages, images, image, admin, statistics, stats, links, plugin, shortcode, sidebar, widget, email, e-mail, print, seo, button, delicious, google, tumblr, linkedin, digg, reddit, facebook, facebook share, facebook like, like, twitter, twitter button, twitter share, tweet, +1, plus 1, google plus, google plus one, plus one, pinterest, pin, pin it, pinit, buffer, stumbleupon, bitly, technorati, lockerz, addthis, sociable, sharedaddy, sharethis, shareaholic, icon, icons, vector, SVG, wpmu, Add to Any, AddToAny
4
  Requires at least: 2.8
5
- Tested up to: 3.9
6
- Stable tag: 1.2.9.2
7
 
8
  Share buttons for WordPress including AddToAny's universal sharing button, Facebook, Twitter, Google+, Pinterest, StumbleUpon and many more.
9
 
@@ -85,7 +85,7 @@ To further customize AddToAny, see the <a href="http://www.addtoany.com/buttons/
85
 
86
  = Something is wrong. What should I try first? =
87
 
88
- Try temporarily switching themes and disabling other plugins to identify a potential conflict. If you find a conflict, try contacting that theme or plugin author. If an issue persists on a default theme with all other plugins disabled, perform a google search across the WordPress forums using a query such as: <a href="https://www.google.com/#q=site:wordpress.org%2Fsupport+addtoany+">site:wordpress.org/support addtoany [your issue issue here]</a>
89
 
90
  Feel free to <a href="http://wordpress.org/support/plugin/add-to-any">post here</a>, where the community can hopefully help you. Describe the issue, what troubleshooting you have already done, and provide a link to your site, and any other potentially relevant information.
91
 
@@ -271,6 +271,10 @@ Upload the plugin directory (including all files and directories within) to the
271
 
272
  == Changelog ==
273
 
 
 
 
 
274
  = 1.2.9.2 =
275
  * Fix transparency on AddToAny's universal share icon
276
  * Add addtoany_sharing_disabled hook to programmatically disable sharing
1
  === Share Buttons by AddToAny ===
2
+ Contributors: micropat, addtoany
3
  Tags: sharing, share, share this, bookmarking, social, share button, share buttons, share links, social share, social sharing, social bookmarking, social bookmarks, bookmark, bookmarks, save, Post, posts, page, pages, images, image, admin, statistics, stats, links, plugin, shortcode, sidebar, widget, email, e-mail, print, seo, button, delicious, google, tumblr, linkedin, digg, reddit, facebook, facebook share, facebook like, like, twitter, twitter button, twitter share, tweet, +1, plus 1, google plus, google plus one, plus one, pinterest, pin, pin it, pinit, buffer, stumbleupon, bitly, technorati, lockerz, addthis, sociable, sharedaddy, sharethis, shareaholic, icon, icons, vector, SVG, wpmu, Add to Any, AddToAny
4
  Requires at least: 2.8
5
+ Tested up to: 3.9.1
6
+ Stable tag: 1.2.9.3
7
 
8
  Share buttons for WordPress including AddToAny's universal sharing button, Facebook, Twitter, Google+, Pinterest, StumbleUpon and many more.
9
 
85
 
86
  = Something is wrong. What should I try first? =
87
 
88
+ Try temporarily switching themes and disabling other plugins to identify a potential conflict. If you find a conflict, try contacting that theme or plugin author. If an issue persists on a default theme with all other plugins disabled, perform a google search across the WordPress forums using a query such as: <a href="https://www.google.com/#q=site:wordpress.org%2Fsupport+-reviews+addtoany+">site:wordpress.org/support -reviews addtoany [your issue issue here]</a>
89
 
90
  Feel free to <a href="http://wordpress.org/support/plugin/add-to-any">post here</a>, where the community can hopefully help you. Describe the issue, what troubleshooting you have already done, and provide a link to your site, and any other potentially relevant information.
91
 
271
 
272
  == Changelog ==
273
 
274
+ = 1.2.9.3 =
275
+ * Prevent script output in feeds on some sites
276
+ * Remove constants for old WP versions (below 2.6)
277
+
278
  = 1.2.9.2 =
279
  * Fix transparency on AddToAny's universal share icon
280
  * Add addtoany_sharing_disabled hook to programmatically disable sharing
add-to-any.php CHANGED
@@ -3,8 +3,8 @@
3
  Plugin Name: Share Buttons by AddToAny
4
  Plugin URI: http://www.addtoany.com/
5
  Description: Share buttons for your pages including AddToAny's universal sharing button, Facebook, Twitter, Google+, Pinterest, StumbleUpon and many more. [<a href="options-general.php?page=add-to-any.php">Settings</a>]
6
- Version: 1.2.9.2
7
- Author: micropat
8
  Author URI: http://www.addtoany.com/
9
  */
10
 
@@ -12,14 +12,6 @@ if ( ! isset( $A2A_locale ) ) {
12
  $A2A_locale = '';
13
  }
14
 
15
- // Pre-2.6 compatibility
16
- if ( ! defined( 'WP_CONTENT_URL' ) ) {
17
- define( 'WP_CONTENT_URL', get_option( 'siteurl' ) . '/wp-content');
18
- }
19
- if ( ! defined( 'WP_PLUGIN_URL' ) ) {
20
- define( 'WP_PLUGIN_URL', WP_CONTENT_URL . '/plugins' );
21
- }
22
-
23
  $A2A_SHARE_SAVE_plugin_basename = plugin_basename( dirname( __FILE__ ) );
24
 
25
  // WordPress Must-Use?
@@ -347,7 +339,7 @@ function ADDTOANY_SHARE_SAVE_BUTTON( $args = array() ) {
347
  $style = '';
348
 
349
  if ( isset( $button_fname ) && ( $button_fname == 'favicon.png' || $button_fname == 'share_16_16.png' ) ) {
350
- if ( ! $is_feed) {
351
  $style_bg = 'background:url(' . $A2A_SHARE_SAVE_plugin_url_path . '/' . $button_fname . ') no-repeat scroll 4px 0px !important;';
352
  $style = ' style="' . $style_bg . 'padding:0 0 0 25px;display:inline-block;height:16px;vertical-align:middle"'; // padding-left:21+4 (4=other icons padding)
353
  }
@@ -507,7 +499,7 @@ if ( ! function_exists( 'A2A_menu_locale' ) ) {
507
 
508
 
509
  function A2A_SHARE_SAVE_head_script() {
510
- if ( is_admin() )
511
  return;
512
 
513
  $options = get_option( 'addtoany_options' );
@@ -583,7 +575,7 @@ add_action( 'wp_head', 'A2A_SHARE_SAVE_head_script' );
583
  function A2A_SHARE_SAVE_footer_script() {
584
  global $_addtoany_targets;
585
 
586
- if ( is_admin() )
587
  return;
588
 
589
  $_addtoany_targets = ( isset( $_addtoany_targets ) ) ? $_addtoany_targets : array();
3
  Plugin Name: Share Buttons by AddToAny
4
  Plugin URI: http://www.addtoany.com/
5
  Description: Share buttons for your pages including AddToAny's universal sharing button, Facebook, Twitter, Google+, Pinterest, StumbleUpon and many more. [<a href="options-general.php?page=add-to-any.php">Settings</a>]
6
+ Version: 1.2.9.3
7
+ Author: AddToAny
8
  Author URI: http://www.addtoany.com/
9
  */
10
 
12
  $A2A_locale = '';
13
  }
14
 
 
 
 
 
 
 
 
 
15
  $A2A_SHARE_SAVE_plugin_basename = plugin_basename( dirname( __FILE__ ) );
16
 
17
  // WordPress Must-Use?
339
  $style = '';
340
 
341
  if ( isset( $button_fname ) && ( $button_fname == 'favicon.png' || $button_fname == 'share_16_16.png' ) ) {
342
+ if ( ! $is_feed ) {
343
  $style_bg = 'background:url(' . $A2A_SHARE_SAVE_plugin_url_path . '/' . $button_fname . ') no-repeat scroll 4px 0px !important;';
344
  $style = ' style="' . $style_bg . 'padding:0 0 0 25px;display:inline-block;height:16px;vertical-align:middle"'; // padding-left:21+4 (4=other icons padding)
345
  }
499
 
500
 
501
  function A2A_SHARE_SAVE_head_script() {
502
+ if ( is_admin() || is_feed() )
503
  return;
504
 
505
  $options = get_option( 'addtoany_options' );
575
  function A2A_SHARE_SAVE_footer_script() {
576
  global $_addtoany_targets;
577
 
578
+ if ( is_admin() || is_feed() )
579
  return;
580
 
581
  $_addtoany_targets = ( isset( $_addtoany_targets ) ) ? $_addtoany_targets : array();
addtoany.admin.php CHANGED
@@ -490,15 +490,6 @@ function A2A_SHARE_SAVE_options_page() {
490
  </fieldset></td>
491
  </tr>
492
  <tr valign="top">
493
- <th scope="row"><?php _e('Menu Style', 'add-to-any'); ?></th>
494
- <td><fieldset>
495
- <p><?php _e("Using AddToAny's Menu Styler, you can customize the colors of your Share/Save menu! When you're done, be sure to paste the generated code in the <a href=\"#\" onclick=\"document.getElementById('A2A_SHARE_SAVE_additional_js_variables').focus();return false\">Additional Options</a> box below.", "add-to-any"); ?></p>
496
- <p>
497
- <a href="http://www.addtoany.com/buttons/share_save/menu_style/wordpress" class="button-secondary" title="<?php _e("Open the AddToAny Menu Styler in a new window", "add-to-any"); ?>" target="_blank" onclick="document.getElementById('A2A_SHARE_SAVE_additional_js_variables').focus(); document.getElementById('A2A_SHARE_SAVE_menu_styler_note').style.display='';"><?php _e("Open Menu Styler", "add-to-any"); ?></a>
498
- </p>
499
- </fieldset></td>
500
- </tr>
501
- <tr valign="top">
502
  <th scope="row"><?php _e('Menu Options', 'add-to-any'); ?></th>
503
  <td><fieldset>
504
  <label>
@@ -510,6 +501,12 @@ function A2A_SHARE_SAVE_options_page() {
510
  <input name="A2A_SHARE_SAVE_show_title" type="checkbox"<?php if($options['show_title']=='1') echo ' checked="checked"'; ?> value="1"/>
511
  <?php _e('Show the title of the page within the universal share menu', 'add-to-any'); ?>
512
  </label>
 
 
 
 
 
 
513
  </fieldset></td>
514
  </tr>
515
  <tr valign="top">
490
  </fieldset></td>
491
  </tr>
492
  <tr valign="top">
 
 
 
 
 
 
 
 
 
493
  <th scope="row"><?php _e('Menu Options', 'add-to-any'); ?></th>
494
  <td><fieldset>
495
  <label>
501
  <input name="A2A_SHARE_SAVE_show_title" type="checkbox"<?php if($options['show_title']=='1') echo ' checked="checked"'; ?> value="1"/>
502
  <?php _e('Show the title of the page within the universal share menu', 'add-to-any'); ?>
503
  </label>
504
+ <label>
505
+ <p><?php _e("Using AddToAny's Menu Styler, you can customize the colors of your Share/Save menu! When you're done, be sure to paste the generated code in the <a href=\"#\" onclick=\"document.getElementById('A2A_SHARE_SAVE_additional_js_variables').focus();return false\">Additional Options</a> box below.", "add-to-any"); ?></p>
506
+ </label>
507
+ <p>
508
+ <a href="http://www.addtoany.com/buttons/share_save/menu_style/wordpress" class="button-secondary" title="<?php _e("Open the AddToAny Menu Styler in a new window", "add-to-any"); ?>" target="_blank" onclick="document.getElementById('A2A_SHARE_SAVE_additional_js_variables').focus(); document.getElementById('A2A_SHARE_SAVE_menu_styler_note').style.display='';"><?php _e("Open Menu Styler", "add-to-any"); ?></a>
509
+ </p>
510
  </fieldset></td>
511
  </tr>
512
  <tr valign="top">