WP Socializer - Version 2.4.7

Version Description

  • Incompatibility of the "latest jQuery version" with other plugins is fixed.
  • Several WordPress notices are fixed.
  • Encoding of Hyphen to – is now corrected for Twitter button.
Download this release

Release Info

Developer vaakash
Plugin Icon 128x128 WP Socializer
Version 2.4.7
Comparing to
See all releases

Code changes from version 2.4.6 to 2.4.7

Thumbs.db DELETED
Binary file
admin/wpsr-admin-floating-bar.php CHANGED
@@ -44,11 +44,11 @@ function wpsr_admin_page_floating_bar(){
44
  $updated = 1;
45
  }
46
 
47
- if($updated == true){
48
  echo "<div class='message updated autoHide'><p>" . __('Updated successfully', 'wpsr') . "</p></div>";
49
  }
50
 
51
- if($reset == true){
52
  echo "<div class='message updated autoHide'><p>" . __('Values are set to defaults successfully', 'wpsr') . "</p></div>";
53
  }
54
 
@@ -64,7 +64,7 @@ function wpsr_admin_page_floating_bar(){
64
  <div class="wrap">
65
  <div class="header">
66
  <?php echo wpsr_admin_buttons('fbrec'); ?>
67
- <h2><img width="32" height="32" src="<?php echo WPSR_ADMIN_URL; ?>images/wp-socializer.png" align="absmiddle"/>&nbsp;WP Socializer<span class="smallText"> v<?php echo WPSR_VERSION; ?><?php echo $wpsr_is_disabled; ?></span></h2>
68
  <span class="subTitle">Floating Share Bar</span>
69
  </div><!-- Header -->
70
 
44
  $updated = 1;
45
  }
46
 
47
+ if(isset($updated) && $updated == true){
48
  echo "<div class='message updated autoHide'><p>" . __('Updated successfully', 'wpsr') . "</p></div>";
49
  }
50
 
51
+ if(isset($reset) && $reset == true){
52
  echo "<div class='message updated autoHide'><p>" . __('Values are set to defaults successfully', 'wpsr') . "</p></div>";
53
  }
54
 
64
  <div class="wrap">
65
  <div class="header">
66
  <?php echo wpsr_admin_buttons('fbrec'); ?>
67
+ <h2><img width="32" height="32" src="<?php echo WPSR_ADMIN_URL; ?>images/wp-socializer.png" align="absmiddle"/>&nbsp;WP Socializer<span class="smallText"> v<?php echo WPSR_VERSION; ?></span></h2>
68
  <span class="subTitle">Floating Share Bar</span>
69
  </div><!-- Header -->
70
 
admin/wpsr-admin-js.js CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * WP Socializer - Admin page functions
3
  * Author: Aakash Chakravarthy
4
- * Version: 2.5
5
  *
6
  */
7
 
@@ -353,6 +353,12 @@ $j(document).ready(function(){
353
  }
354
  });
355
 
 
 
 
 
 
 
356
  // PROMO
357
  $j('.promo_p1').mouseenter(function(){
358
  $j(this).hide();
1
  /*
2
  * WP Socializer - Admin page functions
3
  * Author: Aakash Chakravarthy
4
+ * Version: 2.6
5
  *
6
  */
7
 
353
  }
354
  });
355
 
356
+ // Checkbox unchecked value
357
+ $j('#content input[type=checkbox]').each(function(){
358
+ clone = $j(this).clone().attr('type', 'hidden').attr('value', 0);
359
+ $j(this).before(clone);
360
+ });
361
+
362
  // PROMO
363
  $j('.promo_p1').mouseenter(function(){
364
  $j(this).hide();
admin/wpsr-admin.php CHANGED
@@ -420,7 +420,7 @@ function wpsr_admin_page(){
420
  $wpsr_template_temp['infeed'] = $wpsr_templates[$k]['infeed'];
421
  $wpsr_template_temp['abvcontent'] = $wpsr_templates[$k]['abvcontent'];
422
  $wpsr_template_temp['blwcontent'] = $wpsr_templates[$k]['blwcontent'];
423
- $wpsr_template_temp['addp'] = $wpsr_templates[$k]['addp'];
424
 
425
  update_option("wpsr_template" . $k . "_data", $wpsr_template_temp);
426
  }
@@ -485,6 +485,8 @@ function wpsr_admin_page(){
485
 
486
  if($wpsr_settings['disablewpsr']){
487
  $wpsr_is_disabled = ' | <span class="redText">' . __('Disabled', 'wpsr') . '</span>';
 
 
488
  }
489
 
490
  ?>
420
  $wpsr_template_temp['infeed'] = $wpsr_templates[$k]['infeed'];
421
  $wpsr_template_temp['abvcontent'] = $wpsr_templates[$k]['abvcontent'];
422
  $wpsr_template_temp['blwcontent'] = $wpsr_templates[$k]['blwcontent'];
423
+ $wpsr_template_temp['addp'] = 0;
424
 
425
  update_option("wpsr_template" . $k . "_data", $wpsr_template_temp);
426
  }
485
 
486
  if($wpsr_settings['disablewpsr']){
487
  $wpsr_is_disabled = ' | <span class="redText">' . __('Disabled', 'wpsr') . '</span>';
488
+ }else{
489
+ $wpsr_is_disabled = '';
490
  }
491
 
492
  ?>
includes/wpsr-retweet.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  * Retweet buttons Processor code for WP Socializer Plugin
4
- * Version : 2.2
5
  * Author : Aakash Chakravarthy
6
  */
7
 
@@ -46,7 +46,7 @@ function wpsr_retweet($args = ''){
46
 
47
  $pid = $post->ID;
48
  $purl = home_url() . '/?p=' . $pid;
49
- $title = trim(str_replace(array( '&', '#' ), '', $title)); // revised since v2.4.6
50
 
51
  ## Start Output
52
  $retweet_processed = "\n<!-- Start WP Socializer Plugin - Retweet Button -->\n";
1
  <?php
2
  /*
3
  * Retweet buttons Processor code for WP Socializer Plugin
4
+ * Version : 2.3
5
  * Author : Aakash Chakravarthy
6
  */
7
 
46
 
47
  $pid = $post->ID;
48
  $purl = home_url() . '/?p=' . $pid;
49
+ $title = trim(str_replace(array( '&', '#', '&#8211;' ), array('', '', '-'), $title)); // revised since v2.4.7
50
 
51
  ## Start Output
52
  $retweet_processed = "\n<!-- Start WP Socializer Plugin - Retweet Button -->\n";
readme.txt CHANGED
@@ -6,8 +6,8 @@ Tags: social, social bookmarking, bookmarks, bookmarking, bookmarks menu, share,
6
  License: GPLv2 or later
7
  Donate Link: http://bit.ly/wpsrDonate
8
  Requires at least: 3.1
9
- Tested up to: 3.5.x
10
- Stable tag: 2.4.6
11
 
12
  Super Cool Plugin for inserting all kinds of Social Bookmarking & Sharing buttons. Has customizable Floating Share Bar, Widgets, Shortcodes also.
13
 
@@ -26,15 +26,6 @@ WP Socializer is an advanced plugin for inserting all kinds of Social bookmarkin
26
  * Widgets for inserting FB like box & G+ badges in sidebar.
27
  * Template functions are available for advanced placements.
28
 
29
- = New in v2.4.6 =
30
- * Smarter tracing of images in a post for pinterest.
31
- * Bug fixed in the "title" tag for twitter in the urlencoding of hyphen.
32
- * Bug fixed in the mailto link for the "email" button
33
- * Admin interface tweaked and now more helpful and easy
34
- * Fixed several "W3 Validator" errors
35
-
36
- [More changes listed in Changelog](changelog)
37
-
38
  = Buttons available =
39
 
40
  Using WP Socializer, you can insert all these buttons into your site. These buttons can be inserted easily in any desired way. There is no fixed way as other plugins do.
@@ -71,6 +62,16 @@ There are whole lot of Social bookmarking buttons avaialble in WP Socializer, wh
71
 
72
  > **Donate:** If you find this plugin useful, [consider making a donation](http://bit.ly/wpsrDonate), it will make me happy for this plugin!!
73
 
 
 
 
 
 
 
 
 
 
 
74
  = Reference links =
75
  For more information on the plugin, you can use the below links.
76
 
@@ -120,6 +121,11 @@ For custom placement in theme files and posts, check out the following documenta
120
 
121
  == Changelog ==
122
 
 
 
 
 
 
123
  = 2.4.6 =
124
  * Retweet floating share bar "username" bug fixed
125
  * Smarter tracing of images in a post for pinterest
6
  License: GPLv2 or later
7
  Donate Link: http://bit.ly/wpsrDonate
8
  Requires at least: 3.1
9
+ Tested up to: 3.5
10
+ Stable tag: 2.4.7
11
 
12
  Super Cool Plugin for inserting all kinds of Social Bookmarking & Sharing buttons. Has customizable Floating Share Bar, Widgets, Shortcodes also.
13
 
26
  * Widgets for inserting FB like box & G+ badges in sidebar.
27
  * Template functions are available for advanced placements.
28
 
 
 
 
 
 
 
 
 
 
29
  = Buttons available =
30
 
31
  Using WP Socializer, you can insert all these buttons into your site. These buttons can be inserted easily in any desired way. There is no fixed way as other plugins do.
62
 
63
  > **Donate:** If you find this plugin useful, [consider making a donation](http://bit.ly/wpsrDonate), it will make me happy for this plugin!!
64
 
65
+ = New features and fixed bugs =
66
+ * Smarter tracing of images in a post for pinterest.
67
+ * Bug fixed in the "title" tag for twitter in the urlencoding of hyphen.
68
+ * Bug fixed in the mailto link for the "email" button
69
+ * Admin interface tweaked and now more helpful and easy
70
+ * Fixed several "W3 Validator" errors
71
+ * Several WordPress notices are fixed.
72
+
73
+ [More changes listed in Changelog](changelog)
74
+
75
  = Reference links =
76
  For more information on the plugin, you can use the below links.
77
 
121
 
122
  == Changelog ==
123
 
124
+ = 2.4.7 =
125
+ * Incompatibility of the "latest jQuery version" with other plugins is fixed.
126
+ * Several WordPress notices are fixed.
127
+ * Encoding of Hyphen to `&amp;#8211;` is now corrected for Twitter button.
128
+
129
  = 2.4.6 =
130
  * Retweet floating share bar "username" bug fixed
131
  * Smarter tracing of images in a post for pinterest
wp-socializer.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  Plugin Name: WP Socializer
4
- Version: 2.4.6
5
  Plugin URI: http://www.aakashweb.com/
6
  Description: WP Socializer is an advanced plugin for inserting all kinds of Social bookmarking & sharing buttons. It has super cool features to insert the buttons into posts, sidebar. It also has Floating sharebar and Smart load feature. <a href="http://youtu.be/1uimAE8rFYE" target="_blank">Check out the demo video</a>.
7
  Author: Aakash Chakravarthy
@@ -14,7 +14,7 @@ if(!defined('WP_CONTENT_URL')) {
14
  $wpsr_url = WP_CONTENT_URL . '/plugins/' . plugin_basename(dirname(__FILE__)) . '/';
15
  }
16
 
17
- define('WPSR_VERSION', '2.4.6');
18
  define('WPSR_AUTHOR', 'Aakash Chakravarthy');
19
  define('WPSR_URL', $wpsr_url);
20
  define('WPSR_PUBLIC_URL', WPSR_URL . 'public/');
@@ -1073,13 +1073,14 @@ function wpsr_plugin_actions($links, $file){
1073
  }
1074
  add_filter('plugin_action_links', 'wpsr_plugin_actions', 10, 2);
1075
 
1076
- ## Include the required scripts and styles
1077
- if( !is_admin()){
1078
  // jQuery
1079
- wp_deregister_script('jquery');
1080
- wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"), false, WPSR_VERSION);
1081
  wp_enqueue_script('jquery');
1082
  }
 
1083
 
1084
  /**
1085
  * One function for displaying the buttons in theme files
@@ -1572,15 +1573,15 @@ function wpsr_adminbar() {
1572
  $adminPage = get_option('home') . '/wp-admin/admin.php?page=wp_socializer'; // Broken link fix v2.1
1573
 
1574
  $wp_admin_bar->add_menu( array( 'id' => 'wpsr_adminbar_menu', 'title' => 'WP Socializer', 'href' => $adminPage));
1575
- $wp_admin_bar->add_menu( array( 'parent' => 'wpsr_adminbar_menu', 'title' => __('Edit the templates', 'wpsr'), 'href' => $adminPage . '#tab-3'));
1576
 
1577
  if(is_single() || is_page()){
1578
  $current_object = get_queried_object();
1579
  $postEdit = get_option('home') . '/wp-admin/post.php?action=edit&post=' . $post->ID;
1580
- $wp_admin_bar->add_menu( array( 'parent' => 'wpsr_adminbar_menu', 'title' => __('Disable WP Socializer in this page', 'wpsr'), 'href' => get_edit_post_link($current_object->ID) . '#wp_socializer' ));
1581
  }
1582
 
1583
- $wp_admin_bar->add_menu( array( 'parent' => 'wpsr_adminbar_menu', 'title' => __('Help', 'wpsr'), 'href' => 'http://www.aakashweb.com/wordpress-plugins/wp-socializer/'));
1584
 
1585
  }
1586
  add_action('admin_bar_menu', 'wpsr_adminbar', 1000);
1
  <?php
2
  /*
3
  Plugin Name: WP Socializer
4
+ Version: 2.4.7
5
  Plugin URI: http://www.aakashweb.com/
6
  Description: WP Socializer is an advanced plugin for inserting all kinds of Social bookmarking & sharing buttons. It has super cool features to insert the buttons into posts, sidebar. It also has Floating sharebar and Smart load feature. <a href="http://youtu.be/1uimAE8rFYE" target="_blank">Check out the demo video</a>.
7
  Author: Aakash Chakravarthy
14
  $wpsr_url = WP_CONTENT_URL . '/plugins/' . plugin_basename(dirname(__FILE__)) . '/';
15
  }
16
 
17
+ define('WPSR_VERSION', '2.4.7');
18
  define('WPSR_AUTHOR', 'Aakash Chakravarthy');
19
  define('WPSR_URL', $wpsr_url);
20
  define('WPSR_PUBLIC_URL', WPSR_URL . 'public/');
1073
  }
1074
  add_filter('plugin_action_links', 'wpsr_plugin_actions', 10, 2);
1075
 
1076
+ ## Include jQuery for floating share bar.
1077
+ function wpsr_enqueue_jquery(){
1078
  // jQuery
1079
+ //wp_deregister_script('jquery');
1080
+ //wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"), false, WPSR_VERSION); // Incompatibility fix for other jQuery plugins
1081
  wp_enqueue_script('jquery');
1082
  }
1083
+ add_action('wp_enqueue_scripts', 'wpsr_enqueue_jquery');
1084
 
1085
  /**
1086
  * One function for displaying the buttons in theme files
1573
  $adminPage = get_option('home') . '/wp-admin/admin.php?page=wp_socializer'; // Broken link fix v2.1
1574
 
1575
  $wp_admin_bar->add_menu( array( 'id' => 'wpsr_adminbar_menu', 'title' => 'WP Socializer', 'href' => $adminPage));
1576
+ $wp_admin_bar->add_menu( array( 'id' => 'wpsr_adminbar_edittemplates', 'parent' => 'wpsr_adminbar_menu', 'title' => __('Edit the templates', 'wpsr'), 'href' => $adminPage . '#tab-3'));
1577
 
1578
  if(is_single() || is_page()){
1579
  $current_object = get_queried_object();
1580
  $postEdit = get_option('home') . '/wp-admin/post.php?action=edit&post=' . $post->ID;
1581
+ $wp_admin_bar->add_menu( array( 'id' => 'wpsr_adminbar_disabletemplates', 'parent' => 'wpsr_adminbar_menu', 'title' => __('Disable WP Socializer in this page', 'wpsr'), 'href' => get_edit_post_link($current_object->ID) . '#wp_socializer' ));
1582
  }
1583
 
1584
+ $wp_admin_bar->add_menu( array( 'id' => 'wpsr_adminbar_help', 'parent' => 'wpsr_adminbar_menu', 'title' => __('Help', 'wpsr'), 'href' => 'http://www.aakashweb.com/wordpress-plugins/wp-socializer/'));
1585
 
1586
  }
1587
  add_action('admin_bar_menu', 'wpsr_adminbar', 1000);