Version Description
- November 20, 2014
Download this release
Release Info
Developer | arjunjain08 |
Plugin | WP Social Sharing |
Version | 1.4 |
Comparing to | |
See all releases |
Code changes from version 1.3 to 1.4
- includes/class-public.php +4 -1
- index.php +6 -6
- readme.txt +5 -2
includes/class-public.php
CHANGED
@@ -59,7 +59,10 @@ class SS_Public {
|
|
59 |
if(!is_array($social_options))
|
60 |
$social_options = array_filter( array_map( 'trim', explode( ',',$social_options ) ) );
|
61 |
|
62 |
-
|
|
|
|
|
|
|
63 |
$url = urlencode( get_permalink() );
|
64 |
|
65 |
$loadjs='';
|
59 |
if(!is_array($social_options))
|
60 |
$social_options = array_filter( array_map( 'trim', explode( ',',$social_options ) ) );
|
61 |
|
62 |
+
remove_filter('the_title','wptexturize');
|
63 |
+
$title = urlencode(html_entity_decode(get_the_title()));
|
64 |
+
add_filter('the_title','wptexturize');
|
65 |
+
|
66 |
$url = urlencode( get_permalink() );
|
67 |
|
68 |
$loadjs='';
|
index.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: WP Social Sharing
|
4 |
-
Version: 1.
|
5 |
Plugin URI: http://wordpress.org/plugins/wp-social-sharing/
|
6 |
Description: Adds very attractive responsive social sharing buttons of Facebook, Twitter, Linkedin and Google+ to wordpress posts, pages or media.
|
7 |
Author: Arjun Jain
|
@@ -16,7 +16,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
16 |
exit;
|
17 |
}
|
18 |
|
19 |
-
define( "SS_VERSION", "1.3" );
|
20 |
define( "SS_PLUGIN_DIR", plugin_dir_path( __FILE__ ) );
|
21 |
define( "SS_PLUGIN_URL", plugins_url( '/' , __FILE__ ) );
|
22 |
|
@@ -35,12 +35,12 @@ register_activation_hook(__FILE__, array('SS_Admin','wss_plugin_activation_actio
|
|
35 |
add_action( 'plugins_loaded', 'wss_update_db_check_while_plugin_upgrade' );
|
36 |
|
37 |
function wss_update_db_check_while_plugin_upgrade(){
|
38 |
-
$
|
39 |
-
if($
|
40 |
-
$
|
41 |
|
42 |
// change for linkedin button
|
43 |
-
if($
|
44 |
update_option('wss_wp_social_sharing','f,t,g,l');
|
45 |
$default=get_option('wp_social_sharing');
|
46 |
$default['linkedin_text']='Share on Linkedin';
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: WP Social Sharing
|
4 |
+
Version: 1.4
|
5 |
Plugin URI: http://wordpress.org/plugins/wp-social-sharing/
|
6 |
Description: Adds very attractive responsive social sharing buttons of Facebook, Twitter, Linkedin and Google+ to wordpress posts, pages or media.
|
7 |
Author: Arjun Jain
|
16 |
exit;
|
17 |
}
|
18 |
|
19 |
+
define( "SS_VERSION", "1.3" ); // db versioin
|
20 |
define( "SS_PLUGIN_DIR", plugin_dir_path( __FILE__ ) );
|
21 |
define( "SS_PLUGIN_URL", plugins_url( '/' , __FILE__ ) );
|
22 |
|
35 |
add_action( 'plugins_loaded', 'wss_update_db_check_while_plugin_upgrade' );
|
36 |
|
37 |
function wss_update_db_check_while_plugin_upgrade(){
|
38 |
+
$db_version=get_option('wss_plugin_version');
|
39 |
+
if($db_version === FALSE)
|
40 |
+
$db_version='1.0';
|
41 |
|
42 |
// change for linkedin button
|
43 |
+
if($db_version != '1.3' ){
|
44 |
update_option('wss_wp_social_sharing','f,t,g,l');
|
45 |
$default=get_option('wp_social_sharing');
|
46 |
$default['linkedin_text']='Share on Linkedin';
|
readme.txt
CHANGED
@@ -5,8 +5,8 @@ Plugin URI: http://wordpress.org/plugins/wp-social-sharing/
|
|
5 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=SQC4WR7X5JGDY&lc=IN&item_name=WP%20Social%20Sharing&item_number=7&button_subtype=services¤cy_code=USD&bn=PP%2dBuyNowBF%3abtn_buynowCC_LG%2egif%3aNonHosted
|
6 |
Tags: responsive social buttons, responsive social sharing buttons, responsive button, social buttons, social sharing, sharing buttons, twitter, googleplus, facebook, linkedin, custom post type
|
7 |
Requires at least: 3.5
|
8 |
-
Tested up to: 4.0
|
9 |
-
Stable tag: 1.
|
10 |
License: GPLv3
|
11 |
|
12 |
Adds very attractive responsive social sharing buttons of Facebook, Twitter, Linkedin and Google+ to wordpress posts, pages or media.
|
@@ -52,6 +52,9 @@ You can also use following shortcode
|
|
52 |
|
53 |
== Changelog ==
|
54 |
|
|
|
|
|
|
|
55 |
= 1.3 - November 3, 2014 =
|
56 |
- Add Linkedin share button.
|
57 |
- Update CSS
|
5 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=SQC4WR7X5JGDY&lc=IN&item_name=WP%20Social%20Sharing&item_number=7&button_subtype=services¤cy_code=USD&bn=PP%2dBuyNowBF%3abtn_buynowCC_LG%2egif%3aNonHosted
|
6 |
Tags: responsive social buttons, responsive social sharing buttons, responsive button, social buttons, social sharing, sharing buttons, twitter, googleplus, facebook, linkedin, custom post type
|
7 |
Requires at least: 3.5
|
8 |
+
Tested up to: 4.1.0
|
9 |
+
Stable tag: 1.4
|
10 |
License: GPLv3
|
11 |
|
12 |
Adds very attractive responsive social sharing buttons of Facebook, Twitter, Linkedin and Google+ to wordpress posts, pages or media.
|
52 |
|
53 |
== Changelog ==
|
54 |
|
55 |
+
= 1.4 - November 20, 2014 =
|
56 |
+
- Fixed post title encoding in social sharing
|
57 |
+
|
58 |
= 1.3 - November 3, 2014 =
|
59 |
- Add Linkedin share button.
|
60 |
- Update CSS
|