AddToAny Share Buttons - Version 0.9.9.6

Version Description

Download this release

Release Info

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

Code changes from version 0.9.9.5.9 to 0.9.9.6

Files changed (2) hide show
  1. README.txt +18 -7
  2. add-to-any.php +59 -32
README.txt CHANGED
@@ -1,15 +1,15 @@
1
  === AddToAny: Share/Bookmark/Email Button ===
2
  Contributors: micropat
3
  Tags: sharing, share, sharethis, bookmarking, social, social bookmarking, social bookmarks, bookmark, bookmarks, save, Post, posts, page, pages, images, image, admin, statistics, stats, links, plugin, widget, e-mail, email, seo, button, delicious, google buzz, buzz, google, digg, reddit, facebook, myspace, twitter, stumbleupon, technorati, icon, icons, wpmu, addtoany, add, any
4
- Requires at least: 2.0
5
  Tested up to: 3.0
6
- Stable tag: 0.9.9.5.9
7
 
8
  Help people share, bookmark, and email your posts & pages using any service, such as Facebook, Twitter, Google Buzz, Digg and many more.
9
 
10
  == Description ==
11
 
12
- The most complete plugin to help people **share**, **bookmark**, and **email** your posts and pages using **any service**, such as Facebook, Twitter, Google Buzz, Digg, Delicious, and well over 100 more social bookmarking and sharing sites. The button comes with AddToAny's customizable **Smart Menu**, which **places the services visitors use at the top of the menu**, based on each visitor's browsing and usage history.
13
 
14
  <a href="http://www.addtoany.com/" title="Sharing and bookmarking button widget" target="_blank">Share Button</a> (demo)
15
 
@@ -25,7 +25,7 @@ Individual **service icons** let you optimize your blog posts for specific socia
25
  * WordPress optimized, localized (English, Chinese, Spanish, Japanese, French, Portuguese, Italian, Danish, Catalan, Russian, Albanian, Romanian, Belarusian)
26
  * Many more publisher and user features!
27
 
28
- After **years of ongoing development**, close to **1 million downloads**, and **ongoing support** from the community, AddToAny still strives to be the best WordPress plugin for sharing. We hope it's perfect for everyone by version 1.0.
29
 
30
  <a href="http://www.addtoany.com/share_save" title="Share" target="_blank">Share this plugin</a>
31
 
@@ -171,6 +171,17 @@ Please read <a href="http://www.addtoany.com/buttons/customize/show_over_embeds"
171
 
172
  == Changelog ==
173
 
 
 
 
 
 
 
 
 
 
 
 
174
  = .9.9.5.9 =
175
  * Nonce validation for admin form
176
  * Fixes for debug mode notices
@@ -178,7 +189,7 @@ Please read <a href="http://www.addtoany.com/buttons/customize/show_over_embeds"
178
 
179
  = .9.9.5.8 =
180
  * Wrap inline JavaScript in CDATA section for better XHTML compliance
181
- * Depreciate embedded object hiding option in favor of Menu API due to a new automatic workaround and a change in default value
182
  * If you need to have AddToAny hide objects (like Flash) to display the AddToAny menu, set a2a_config.hide_embeds = 1; in the Additional Options box
183
 
184
  = .9.9.5.7 =
@@ -398,7 +409,7 @@ Please read <a href="http://www.addtoany.com/buttons/customize/show_over_embeds"
398
  * Support for themes that do not support modern Loop methods
399
  * Permalinks now targeted for these older themes
400
  * AddToAny URI scheme gives precedence to link URL parameter, then Title
401
- * Sitename & Siteurl parameters depreciated for WP (they are usually redundant)
402
 
403
  = .9.9.2.2 =
404
  * Fixed display when all standalone services are removed in admin
@@ -540,7 +551,7 @@ Please read <a href="http://www.addtoany.com/buttons/customize/show_over_embeds"
540
 
541
  = .9.5.2 =
542
  * Fixed bug in Internet Explorer 6 that caused custom buttons to have a height and width of 0
543
- * Removed the XHTML depreciated `name` attribute from the button's anchor
544
 
545
  = .9.5.1 =
546
  * Fixed 1 line to support those without short_open_tag
1
  === AddToAny: Share/Bookmark/Email Button ===
2
  Contributors: micropat
3
  Tags: sharing, share, sharethis, bookmarking, social, social bookmarking, social bookmarks, bookmark, bookmarks, save, Post, posts, page, pages, images, image, admin, statistics, stats, links, plugin, widget, e-mail, email, seo, button, delicious, google buzz, buzz, google, digg, reddit, facebook, myspace, twitter, stumbleupon, technorati, icon, icons, wpmu, addtoany, add, any
4
+ Requires at least: 2.8
5
  Tested up to: 3.0
6
+ Stable tag: 0.9.9.6
7
 
8
  Help people share, bookmark, and email your posts & pages using any service, such as Facebook, Twitter, Google Buzz, Digg and many more.
9
 
10
  == Description ==
11
 
12
+ The WordPress plugin to help people **share**, **bookmark**, and **email** your posts and pages using **any service**, such as Facebook, Twitter, Google Buzz, Digg, Delicious, and well over 100 more social bookmarking and sharing sites. The plugin comes with AddToAny's customizable **Smart Menu**, which **places the services visitors use at the top of the menu**, based on each visitor's browsing and usage history.
13
 
14
  <a href="http://www.addtoany.com/" title="Sharing and bookmarking button widget" target="_blank">Share Button</a> (demo)
15
 
25
  * WordPress optimized, localized (English, Chinese, Spanish, Japanese, French, Portuguese, Italian, Danish, Catalan, Russian, Albanian, Romanian, Belarusian)
26
  * Many more publisher and user features!
27
 
28
+ After **years of ongoing development**, over **1 million downloads**, and **ongoing support** from the community, AddToAny still strives to be the best WordPress plugin for sharing. We hope it's perfect for everyone by version 1.0.
29
 
30
  <a href="http://www.addtoany.com/share_save" title="Share" target="_blank">Share this plugin</a>
31
 
171
 
172
  == Changelog ==
173
 
174
+ = .9.9.6 =
175
+ * Require WordPress 2.8
176
+ * For WordPress versions 2.0 through 2.7.1 use version .9.9.5.9 (<a href="http://downloads.wordpress.org/plugin/add-to-any.0.9.9.5.9.zip">download .zip</a>) or <a href="http://wordpress.org/extend/plugins/add-to-any/download/">earlier</a>
177
+ * Fix validation problem caused by WordPress' lack of support for CDATA sections in posts
178
+ * http://core.trac.wordpress.org/ticket/3670 - WordPress fix slated for 3.1, then @todo reevaluate
179
+ * Replace deprecated functions
180
+ * Internal security improvements (no known issues, just precautionary stuff for rare circumstances)
181
+ * Remove legacy parameters on HREF to accomodate efficient hash params via menu JS
182
+ * Remove extraneous semicolons within STYLE attributes for icon+text button
183
+ * Variable cleanup in _BUTTON and _ICONS functions for legibility
184
+
185
  = .9.9.5.9 =
186
  * Nonce validation for admin form
187
  * Fixes for debug mode notices
189
 
190
  = .9.9.5.8 =
191
  * Wrap inline JavaScript in CDATA section for better XHTML compliance
192
+ * Deprecate embedded object hiding option in favor of Menu API due to a new automatic workaround and a change in default value
193
  * If you need to have AddToAny hide objects (like Flash) to display the AddToAny menu, set a2a_config.hide_embeds = 1; in the Additional Options box
194
 
195
  = .9.9.5.7 =
409
  * Support for themes that do not support modern Loop methods
410
  * Permalinks now targeted for these older themes
411
  * AddToAny URI scheme gives precedence to link URL parameter, then Title
412
+ * Sitename & Siteurl parameters deprecated for WP (they are usually redundant)
413
 
414
  = .9.9.2.2 =
415
  * Fixed display when all standalone services are removed in admin
551
 
552
  = .9.5.2 =
553
  * Fixed bug in Internet Explorer 6 that caused custom buttons to have a height and width of 0
554
+ * Removed the XHTML deprecated `name` attribute from the button's anchor
555
 
556
  = .9.5.1 =
557
  * Fixed 1 line to support those without short_open_tag
add-to-any.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: AddToAny: Share/Bookmark/Email Button
4
  Plugin URI: http://www.addtoany.com/
5
  Description: Help people share, bookmark, and email your posts & pages using any service, such as Facebook, Twitter, Google Buzz, Digg and many more. [<a href="options-general.php?page=add-to-any.php">Settings</a>]
6
- Version: .9.9.5.9
7
  Author: AddToAny
8
  Author URI: http://www.addtoany.com/
9
  */
@@ -78,19 +78,34 @@ function ADDTOANY_SHARE_SAVE_KIT( $args = false ) {
78
  function ADDTOANY_SHARE_SAVE_ICONS( $args = array() ) {
79
  // $args array: output_later, html_container_open, html_container_close, html_wrap_open, html_wrap_close, linkname, linkurl
80
 
 
 
81
  $linkname = (isset($args['linkname'])) ? $args['linkname'] : FALSE;
82
  $linkurl = (isset($args['linkurl'])) ? $args['linkurl'] : FALSE;
83
 
84
  $args = array_merge($args, A2A_SHARE_SAVE_link_vars($linkname, $linkurl)); // linkname_enc, etc.
85
-
86
- global $A2A_SHARE_SAVE_plugin_url_path, $A2A_SHARE_SAVE_services;
 
 
 
 
 
 
 
 
 
 
 
 
 
87
 
88
  // Make available services extensible via plugins, themes (functions.php), etc.
89
  $A2A_SHARE_SAVE_services = apply_filters('A2A_SHARE_SAVE_services', $A2A_SHARE_SAVE_services);
90
 
91
  $active_services = get_option('A2A_SHARE_SAVE_active_services');
92
 
93
- $ind_html = "" . $args['html_container_open'];
94
 
95
  if( !$active_services )
96
  $active_services = Array();
@@ -108,8 +123,8 @@ function ADDTOANY_SHARE_SAVE_ICONS( $args = array() ) {
108
  if (isset($service['href'])) {
109
  $custom_service = TRUE;
110
  $href = $service['href'];
111
- $href = str_replace('A2A_LINKURL', $args['linkurl_enc'], $href);
112
- $href = str_replace('A2A_LINKNAME', $args['linkname_enc'], $href);
113
  } else {
114
  $custom_service = FALSE;
115
  }
@@ -123,19 +138,19 @@ function ADDTOANY_SHARE_SAVE_ICONS( $args = array() ) {
123
  $width = (isset($service['icon_width'])) ? $service['icon_width'] : '16';
124
  $height = (isset($service['icon_height'])) ? $service['icon_height'] : '16';
125
 
126
- $url = ($custom_service) ? $href : "http://www.addtoany.com/add_to/" . $safe_name . "?linkurl=" . $args['linkurl_enc'] . "&amp;linkname=" . $args['linkname_enc'];
127
  $src = ($custom_service) ? $icon : $A2A_SHARE_SAVE_plugin_url_path."/icons/".$icon.".png";
128
 
129
- $link = $args['html_wrap_open']."<a href=\"$url\" title=\"$name\" rel=\"nofollow\" target=\"_blank\">";
130
  $link .= "<img src=\"$src\" width=\"$width\" height=\"$height\" alt=\"$name\"/>";
131
- $link .= "</a>".$args['html_wrap_close'];
132
 
133
  $ind_html .= apply_filters('addtoany_link', $link);
134
  }
135
 
136
- $ind_html .= (isset($args['html_container_close'])) ? $args['html_container_close'] : "";
137
 
138
- if (isset($args['output_later']))
139
  return $ind_html;
140
  else
141
  echo $ind_html;
@@ -145,17 +160,28 @@ function ADDTOANY_SHARE_SAVE_BUTTON( $args = array() ) {
145
 
146
  // $args array = output_later, html_container_open, html_container_close, html_wrap_open, html_wrap_close, linkname, linkurl
147
 
148
- global $A2A_SHARE_SAVE_plugin_url_path, $A2A_SHARE_SAVE_services;
149
 
150
  $linkname = (isset($args['linkname'])) ? $args['linkname'] : FALSE;
151
  $linkurl = (isset($args['linkurl'])) ? $args['linkurl'] : FALSE;
152
- $html_container_open = (isset($args['html_container_open'])) ? $args['html_container_open'] : '';
153
-
154
- // Make available services extensible via plugins, themes (functions.php), etc.
155
- $A2A_SHARE_SAVE_services = apply_filters('A2A_SHARE_SAVE_services', $A2A_SHARE_SAVE_services);
156
 
157
  $args = array_merge($args, A2A_SHARE_SAVE_link_vars($linkname, $linkurl));; // linkname_enc, etc.
158
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
159
  /* AddToAny button */
160
 
161
  $button_target = (get_option('A2A_SHARE_SAVE_button_opens_new_window')=='1' && (get_option('A2A_SHARE_SAVE_onclick')!='1')) ? ' target="_blank"' : '';
@@ -182,9 +208,8 @@ function ADDTOANY_SHARE_SAVE_BUTTON( $args = array() ) {
182
 
183
  if( $button_fname == 'favicon.png' || $button_fname == 'share_16_16.png' ) {
184
  if( !is_feed() ) {
185
- $style_bg = 'background:url('.$A2A_SHARE_SAVE_plugin_url_path.'/'.$button_fname.') no-repeat scroll 9px 0px'; // padding-left:9 (9=other icons padding)
186
- $style_bg = ';' . $style_bg . ' !important;';
187
- $style = ' style="'.$style_bg.'padding:0 0 0 30px;display:inline-block;height:16px;line-height:16px;vertical-align:middle;"'; // padding-left:30+9 (9=other icons padding)
188
  }
189
  }
190
 
@@ -195,11 +220,9 @@ function ADDTOANY_SHARE_SAVE_BUTTON( $args = array() ) {
195
  $button = '<img src="'.$button_src.'"'.$button_width.$button_height.' alt="Share/Bookmark"/>';
196
  }
197
 
198
- $button_html = $html_container_open.$args['html_wrap_open'].'<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?'
199
- .'linkurl='.$args['linkurl_enc']
200
- .'&amp;linkname='.$args['linkname_enc']
201
- .'"' . $style . $button_target
202
- .'>'.$button.'</a>'.$args['html_wrap_close'].$args['html_container_close'];
203
 
204
  // If not a feed
205
  if( !is_feed() ) {
@@ -222,26 +245,26 @@ function ADDTOANY_SHARE_SAVE_BUTTON( $args = array() ) {
222
  . ((get_option('A2A_SHARE_SAVE_onclick')=='1') ? 'a2a_config.onclick=1;' . "\n" : '')
223
  . ((get_option('A2A_SHARE_SAVE_show_title')=='1') ? 'a2a_config.show_title=1;' . "\n" : '')
224
  . (($additional_js) ? stripslashes($additional_js) . "\n" : '')
225
- . "//]]>" . '</script><script type="text/javascript" src="' . $static_server . '/page.js"></script>';
226
  $A2A_SHARE_SAVE_external_script_called = true;
227
  }
228
  else {
229
- $external_script_call = "a2a.init('page');\n//]]></script>";
230
  $initial_js = '';
231
  }
232
 
233
- $button_javascript = "\n" . '<script type="text/javascript">' . "//<![CDATA[\n"
234
  . $initial_js
235
  . A2A_menu_locale()
236
- . 'a2a_config.linkname="' . js_escape($args['linkname']) . '";' . "\n"
237
- . 'a2a_config.linkurl="' . $args['linkurl'] . '";' . "\n"
238
  . $external_script_call . "\n\n";
239
 
240
  $button_html .= $button_javascript;
241
 
242
  }
243
 
244
- if (isset($args['output_later']))
245
  return $button_html;
246
  else
247
  echo $button_html;
@@ -528,13 +551,17 @@ function A2A_SHARE_SAVE_options_page() {
528
 
529
  global $A2A_SHARE_SAVE_plugin_url_path, $A2A_SHARE_SAVE_services, $wp_version;
530
 
 
 
 
 
531
  // Make available services extensible via plugins, themes (functions.php), etc.
532
  $A2A_SHARE_SAVE_services = apply_filters('A2A_SHARE_SAVE_services', $A2A_SHARE_SAVE_services);
533
 
534
  if ( isset($_POST['Submit'])) {
535
 
536
  // Nonce verification
537
- check_admin_referer('add-to-any-dupdate-options');
538
 
539
  update_option( 'A2A_SHARE_SAVE_display_in_posts_on_front_page', ($_POST['A2A_SHARE_SAVE_display_in_posts_on_front_page']=='1') ? '1':'-1' );
540
  update_option( 'A2A_SHARE_SAVE_display_in_posts', ($_POST['A2A_SHARE_SAVE_display_in_posts']=='1') ? '1':'-1' );
@@ -594,7 +621,7 @@ function A2A_SHARE_SAVE_options_page() {
594
 
595
  <form method="post" action="">
596
 
597
- <?php wp_nonce_field('add-to-any-dupdate-options'); ?>
598
 
599
  <table class="form-table">
600
  <?php if ($wp_version >= "2.6") { /* Must be on WP 2.6+ */ ?>
3
  Plugin Name: AddToAny: Share/Bookmark/Email Button
4
  Plugin URI: http://www.addtoany.com/
5
  Description: Help people share, bookmark, and email your posts & pages using any service, such as Facebook, Twitter, Google Buzz, Digg and many more. [<a href="options-general.php?page=add-to-any.php">Settings</a>]
6
+ Version: .9.9.6
7
  Author: AddToAny
8
  Author URI: http://www.addtoany.com/
9
  */
78
  function ADDTOANY_SHARE_SAVE_ICONS( $args = array() ) {
79
  // $args array: output_later, html_container_open, html_container_close, html_wrap_open, html_wrap_close, linkname, linkurl
80
 
81
+ global $A2A_SHARE_SAVE_plugin_url_path, $A2A_SHARE_SAVE_services;
82
+
83
  $linkname = (isset($args['linkname'])) ? $args['linkname'] : FALSE;
84
  $linkurl = (isset($args['linkurl'])) ? $args['linkurl'] : FALSE;
85
 
86
  $args = array_merge($args, A2A_SHARE_SAVE_link_vars($linkname, $linkurl)); // linkname_enc, etc.
87
+
88
+ $defaults = array(
89
+ 'linkname' => '',
90
+ 'linkurl' => '',
91
+ 'linkname_enc' => '',
92
+ 'linkurl_enc' => '',
93
+ 'output_later' => FALSE,
94
+ 'html_container_open' => '',
95
+ 'html_container_close' => '',
96
+ 'html_wrap_open' => '',
97
+ 'html_wrap_close' => '',
98
+ );
99
+
100
+ $args = wp_parse_args( $args, $defaults );
101
+ extract( $args, EXTR_SKIP );
102
 
103
  // Make available services extensible via plugins, themes (functions.php), etc.
104
  $A2A_SHARE_SAVE_services = apply_filters('A2A_SHARE_SAVE_services', $A2A_SHARE_SAVE_services);
105
 
106
  $active_services = get_option('A2A_SHARE_SAVE_active_services');
107
 
108
+ $ind_html = "" . $html_container_open;
109
 
110
  if( !$active_services )
111
  $active_services = Array();
123
  if (isset($service['href'])) {
124
  $custom_service = TRUE;
125
  $href = $service['href'];
126
+ $href = str_replace('A2A_LINKURL', $linkurl_enc, $href);
127
+ $href = str_replace('A2A_LINKNAME', $linkname_enc, $href);
128
  } else {
129
  $custom_service = FALSE;
130
  }
138
  $width = (isset($service['icon_width'])) ? $service['icon_width'] : '16';
139
  $height = (isset($service['icon_height'])) ? $service['icon_height'] : '16';
140
 
141
+ $url = ($custom_service) ? $href : "http://www.addtoany.com/add_to/" . $safe_name . "?linkurl=" . $linkurl_enc . "&amp;linkname=" . $linkname_enc;
142
  $src = ($custom_service) ? $icon : $A2A_SHARE_SAVE_plugin_url_path."/icons/".$icon.".png";
143
 
144
+ $link = $html_wrap_open."<a href=\"$url\" title=\"$name\" rel=\"nofollow\" target=\"_blank\">";
145
  $link .= "<img src=\"$src\" width=\"$width\" height=\"$height\" alt=\"$name\"/>";
146
+ $link .= "</a>".$html_wrap_close;
147
 
148
  $ind_html .= apply_filters('addtoany_link', $link);
149
  }
150
 
151
+ $ind_html .= $html_container_close;
152
 
153
+ if ( $output_later )
154
  return $ind_html;
155
  else
156
  echo $ind_html;
160
 
161
  // $args array = output_later, html_container_open, html_container_close, html_wrap_open, html_wrap_close, linkname, linkurl
162
 
163
+ global $A2A_SHARE_SAVE_plugin_url_path;
164
 
165
  $linkname = (isset($args['linkname'])) ? $args['linkname'] : FALSE;
166
  $linkurl = (isset($args['linkurl'])) ? $args['linkurl'] : FALSE;
 
 
 
 
167
 
168
  $args = array_merge($args, A2A_SHARE_SAVE_link_vars($linkname, $linkurl));; // linkname_enc, etc.
169
 
170
+ $defaults = array(
171
+ 'linkname' => '',
172
+ 'linkurl' => '',
173
+ 'linkname_enc' => '',
174
+ 'linkurl_enc' => '',
175
+ 'output_later' => FALSE,
176
+ 'html_container_open' => '',
177
+ 'html_container_close' => '',
178
+ 'html_wrap_open' => '',
179
+ 'html_wrap_close' => '',
180
+ );
181
+
182
+ $args = wp_parse_args( $args, $defaults );
183
+ extract( $args, EXTR_SKIP );
184
+
185
  /* AddToAny button */
186
 
187
  $button_target = (get_option('A2A_SHARE_SAVE_button_opens_new_window')=='1' && (get_option('A2A_SHARE_SAVE_onclick')!='1')) ? ' target="_blank"' : '';
208
 
209
  if( $button_fname == 'favicon.png' || $button_fname == 'share_16_16.png' ) {
210
  if( !is_feed() ) {
211
+ $style_bg = 'background:url('.$A2A_SHARE_SAVE_plugin_url_path.'/'.$button_fname.') no-repeat scroll 9px 0px !important;';
212
+ $style = ' style="'.$style_bg.'padding:0 0 0 30px;display:inline-block;height:16px;line-height:16px;vertical-align:middle"'; // padding-left:30+9 (9=other icons padding)
 
213
  }
214
  }
215
 
220
  $button = '<img src="'.$button_src.'"'.$button_width.$button_height.' alt="Share/Bookmark"/>';
221
  }
222
 
223
+ $button_html = $html_container_open.$html_wrap_open.'<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"'
224
+ . $style . $button_target
225
+ . '>' . $button . '</a>' . $html_wrap_close . $html_container_close;
 
 
226
 
227
  // If not a feed
228
  if( !is_feed() ) {
245
  . ((get_option('A2A_SHARE_SAVE_onclick')=='1') ? 'a2a_config.onclick=1;' . "\n" : '')
246
  . ((get_option('A2A_SHARE_SAVE_show_title')=='1') ? 'a2a_config.show_title=1;' . "\n" : '')
247
  . (($additional_js) ? stripslashes($additional_js) . "\n" : '')
248
+ . "//-->" . '</script><script type="text/javascript" src="' . $static_server . '/page.js"></script>';
249
  $A2A_SHARE_SAVE_external_script_called = true;
250
  }
251
  else {
252
+ $external_script_call = "a2a.init('page');\n//--></script>";
253
  $initial_js = '';
254
  }
255
 
256
+ $button_javascript = "\n" . '<script type="text/javascript">' . "<!--\n"
257
  . $initial_js
258
  . A2A_menu_locale()
259
+ . 'a2a_config.linkname="' . esc_js($linkname) . '";' . "\n"
260
+ . 'a2a_config.linkurl="' . $linkurl . '";' . "\n"
261
  . $external_script_call . "\n\n";
262
 
263
  $button_html .= $button_javascript;
264
 
265
  }
266
 
267
+ if ( $output_later )
268
  return $button_html;
269
  else
270
  echo $button_html;
551
 
552
  global $A2A_SHARE_SAVE_plugin_url_path, $A2A_SHARE_SAVE_services, $wp_version;
553
 
554
+ // Require admin privs
555
+ if ( ! current_user_can('manage_options') )
556
+ return false;
557
+
558
  // Make available services extensible via plugins, themes (functions.php), etc.
559
  $A2A_SHARE_SAVE_services = apply_filters('A2A_SHARE_SAVE_services', $A2A_SHARE_SAVE_services);
560
 
561
  if ( isset($_POST['Submit'])) {
562
 
563
  // Nonce verification
564
+ check_admin_referer('add-to-any-update-options');
565
 
566
  update_option( 'A2A_SHARE_SAVE_display_in_posts_on_front_page', ($_POST['A2A_SHARE_SAVE_display_in_posts_on_front_page']=='1') ? '1':'-1' );
567
  update_option( 'A2A_SHARE_SAVE_display_in_posts', ($_POST['A2A_SHARE_SAVE_display_in_posts']=='1') ? '1':'-1' );
621
 
622
  <form method="post" action="">
623
 
624
+ <?php wp_nonce_field('add-to-any-update-options'); ?>
625
 
626
  <table class="form-table">
627
  <?php if ($wp_version >= "2.6") { /* Must be on WP 2.6+ */ ?>