Version Description
- Issue if you add more tag to your content fixed.
Download this release
Release Info
Developer | oceanwp |
Plugin | Ocean Social Sharing |
Version | 1.0.4 |
Comparing to | |
See all releases |
Code changes from version 1.0.3 to 1.0.4
- ocean-social-sharing.php +2 -2
- readme.txt +5 -2
- template/social-share.php +2 -2
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.
|
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.
|
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.4
|
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.4';
|
90 |
|
91 |
register_activation_hook( __FILE__, array( $this, 'install' ) );
|
92 |
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: oceanwp
|
3 |
Tags: social, social sharing, social share, share, oceanwp
|
4 |
Requires at least: 3.5
|
5 |
-
Tested up to: 4.7.
|
6 |
-
Stable tag: 1.0.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -32,6 +32,9 @@ This plugin will only work with the [OceanWP](https://oceanwp.org/) theme.
|
|
32 |
|
33 |
== Changelog ==
|
34 |
|
|
|
|
|
|
|
35 |
= 1.0.3 =
|
36 |
- Register translation string.
|
37 |
|
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.4
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
32 |
|
33 |
== Changelog ==
|
34 |
|
35 |
+
= 1.0.4 =
|
36 |
+
- Issue if you add more tag to your content fixed.
|
37 |
+
|
38 |
= 1.0.3 =
|
39 |
- Register translation string.
|
40 |
|
template/social-share.php
CHANGED
@@ -89,7 +89,7 @@ $title = get_the_title(); ?>
|
|
89 |
if ( 'pinterest' == $site ) { ?>
|
90 |
|
91 |
<li class="pinterest">
|
92 |
-
<a href="https://www.pinterest.com/pin/create/button/?url=<?php echo rawurlencode( esc_url( $url ) ); ?>&media=<?php echo wp_get_attachment_url( get_post_thumbnail_id( $post_id ) ); ?>&description=<?php echo
|
93 |
<span class="fa fa-pinterest-p"></span>
|
94 |
</a>
|
95 |
</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&url=<?php echo rawurlencode( esc_url( $url ) ); ?>&title=<?php echo rawurlencode( $title ); ?>&summary=<?php echo
|
103 |
<span class="fa fa-linkedin"></span>
|
104 |
</a>
|
105 |
</li>
|
89 |
if ( 'pinterest' == $site ) { ?>
|
90 |
|
91 |
<li class="pinterest">
|
92 |
+
<a href="https://www.pinterest.com/pin/create/button/?url=<?php echo rawurlencode( esc_url( $url ) ); ?>&media=<?php echo wp_get_attachment_url( get_post_thumbnail_id( $post_id ) ); ?>&description=<?php echo wp_trim_words( strip_shortcodes( get_the_content( $post_id ) ), 40 ); ?>" title="<?php esc_html_e( 'Share on Pinterest', 'ocean-social-sharing' ); ?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;">
|
93 |
<span class="fa fa-pinterest-p"></span>
|
94 |
</a>
|
95 |
</li>
|
99 |
if ( 'linkedin' == $site ) { ?>
|
100 |
|
101 |
<li class="linkedin">
|
102 |
+
<a href="http://www.linkedin.com/shareArticle?mini=true&url=<?php echo rawurlencode( esc_url( $url ) ); ?>&title=<?php echo rawurlencode( $title ); ?>&summary=<?php echo wp_trim_words( strip_shortcodes( get_the_content( $post_id ) ), 40 ); ?>&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>
|