Ocean Social Sharing - Version 1.0.5.1

Version Description

  • Added: HTTPS for the Twitter and LinkedIn sharing links.
Download this release

Release Info

Developer oceanwp
Plugin Icon 128x128 Ocean Social Sharing
Version 1.0.5.1
Comparing to
See all releases

Code changes from version 1.0.5 to 1.0.5.1

ocean-social-sharing.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Ocean Social Sharing
4
  * Plugin URI: https://oceanwp.org/extension/ocean-social-sharing/
5
  * Description: A simple plugin to add social share buttons to your posts.
6
- * Version: 1.0.5
7
  * Author: OceanWP
8
  * Author URI: https://oceanwp.org/
9
  * Requires at least: 4.0.0
@@ -86,7 +86,7 @@ final class Ocean_Social_Sharing {
86
  $this->token = 'ocean-social-sharing';
87
  $this->plugin_url = plugin_dir_url( __FILE__ );
88
  $this->plugin_path = plugin_dir_path( __FILE__ );
89
- $this->version = '1.0.5';
90
 
91
  register_activation_hook( __FILE__, array( $this, 'install' ) );
92
 
3
  * Plugin Name: Ocean Social Sharing
4
  * Plugin URI: https://oceanwp.org/extension/ocean-social-sharing/
5
  * Description: A simple plugin to add social share buttons to your posts.
6
+ * Version: 1.0.5.1
7
  * Author: OceanWP
8
  * Author URI: https://oceanwp.org/
9
  * Requires at least: 4.0.0
86
  $this->token = 'ocean-social-sharing';
87
  $this->plugin_url = plugin_dir_url( __FILE__ );
88
  $this->plugin_path = plugin_dir_path( __FILE__ );
89
+ $this->version = '1.0.5.1';
90
 
91
  register_activation_hook( __FILE__, array( $this, 'install' ) );
92
 
readme.txt CHANGED
@@ -1,14 +1,12 @@
1
  === Ocean Social Sharing ===
2
  Contributors: oceanwp
3
  Tags: social, social sharing, social share, share, oceanwp
4
- Requires at least: 3.5
5
- Tested up to: 4.7.3
6
- Stable tag: 1.0.5
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
- A simple plugin to add social share buttons to your posts.
11
-
12
  == Description ==
13
 
14
  A simple plugin to add social share buttons to your posts.
@@ -32,21 +30,24 @@ This plugin will only work with the [OceanWP](https://oceanwp.org/) theme.
32
 
33
  == Changelog ==
34
 
 
 
 
35
  = 1.0.5 =
36
- - Issue with Facebook sharing url fixed.
37
 
38
  = 1.0.4 =
39
- - Issue if you add more tag to your content fixed.
40
 
41
  = 1.0.3 =
42
- - Register translation string.
43
 
44
  = 1.0.2 =
45
- - Multicheck field replaced by sortable control, now you can change positioning of the social buttons.
46
- - Support OceanWP 1.1.
47
 
48
  = 1.0.1 =
49
- - Fixed problem excerpt before the social links.
50
 
51
  = 1.0.0 =
52
  - Initial release.
1
  === Ocean Social Sharing ===
2
  Contributors: oceanwp
3
  Tags: social, social sharing, social share, share, oceanwp
4
+ Requires at least: 4.0
5
+ Tested up to: 4.8
6
+ Stable tag: 1.0.5.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
 
 
10
  == Description ==
11
 
12
  A simple plugin to add social share buttons to your posts.
30
 
31
  == Changelog ==
32
 
33
+ = 1.0.5.1 =
34
+ - Added: HTTPS for the Twitter and LinkedIn sharing links.
35
+
36
  = 1.0.5 =
37
+ - Fixed: Issue with Facebook sharing url fixed.
38
 
39
  = 1.0.4 =
40
+ - Fixed: Issue if you add more tag to your content fixed.
41
 
42
  = 1.0.3 =
43
+ - Tweak: Register translation string.
44
 
45
  = 1.0.2 =
46
+ - Added: Support OceanWP 1.1.
47
+ - Tweak: Multicheck field replaced by sortable control, now you can change positioning of the social buttons.
48
 
49
  = 1.0.1 =
50
+ - Fixed: Problem excerpt before the social links.
51
 
52
  = 1.0.0 =
53
  - Initial release.
template/social-share.php CHANGED
@@ -59,7 +59,7 @@ $title = get_the_title(); ?>
59
  $handle = get_theme_mod( 'oss_social_share_twitter_handle' ); ?>
60
 
61
  <li class="twitter">
62
- <a href="http://twitter.com/share?text=<?php echo rawurlencode( $title ); ?>&amp;url=<?php echo rawurlencode( esc_url( $url ) ); ?><?php if ( $handle ) echo '&amp;via='. esc_attr( $handle ); ?>" title="<?php esc_html_e( 'Share on Twitter', 'ocean-social-sharing' ); ?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;">
63
  <span class="fa fa-twitter"></span>
64
  </a>
65
  </li>
@@ -99,7 +99,7 @@ $title = get_the_title(); ?>
99
  if ( 'linkedin' == $site ) { ?>
100
 
101
  <li class="linkedin">
102
- <a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=<?php echo rawurlencode( esc_url( $url ) ); ?>&amp;title=<?php echo rawurlencode( $title ); ?>&amp;summary=<?php echo wp_trim_words( strip_shortcodes( get_the_content( $post_id ) ), 40 ); ?>&amp;source=<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php esc_html_e( 'Share on LinkedIn', 'ocean-social-sharing' ); ?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;">
103
  <span class="fa fa-linkedin"></span>
104
  </a>
105
  </li>
59
  $handle = get_theme_mod( 'oss_social_share_twitter_handle' ); ?>
60
 
61
  <li class="twitter">
62
+ <a href="https://twitter.com/share?text=<?php echo rawurlencode( $title ); ?>&amp;url=<?php echo rawurlencode( esc_url( $url ) ); ?><?php if ( $handle ) echo '&amp;via='. esc_attr( $handle ); ?>" title="<?php esc_html_e( 'Share on Twitter', 'ocean-social-sharing' ); ?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;">
63
  <span class="fa fa-twitter"></span>
64
  </a>
65
  </li>
99
  if ( 'linkedin' == $site ) { ?>
100
 
101
  <li class="linkedin">
102
+ <a href="https://www.linkedin.com/shareArticle?mini=true&amp;url=<?php echo rawurlencode( esc_url( $url ) ); ?>&amp;title=<?php echo rawurlencode( $title ); ?>&amp;summary=<?php echo wp_trim_words( strip_shortcodes( get_the_content( $post_id ) ), 40 ); ?>&amp;source=<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php esc_html_e( 'Share on LinkedIn', 'ocean-social-sharing' ); ?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;">
103
  <span class="fa fa-linkedin"></span>
104
  </a>
105
  </li>