Storefront Product Sharing - Version 1.0.1

Version Description

  • 21.05.2015 =
  • Fix - Properly encode spaces when adding the product title to the url.
Download this release

Release Info

Developer tiagonoronha
Plugin Icon 128x128 Storefront Product Sharing
Version 1.0.1
Comparing to
See all releases

Code changes from version 1.0.0 to 1.0.1

Files changed (3) hide show
  1. changelog.txt +4 -1
  2. readme.txt +5 -2
  3. storefront-product-sharing.php +5 -5
changelog.txt CHANGED
@@ -1,4 +1,7 @@
1
  *** Storefront Product Sharing Changelog ***
2
 
 
 
 
3
  2015.04.22 - version 1.0.0
4
- * Initial release
1
  *** Storefront Product Sharing Changelog ***
2
 
3
+ 2015.05.21 - version 1.0.1
4
+ * Fix - Properly encode spaces when adding the product title to the url.
5
+
6
  2015.04.22 - version 1.0.0
7
+ * Initial release
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Storefront Product Sharing ===
2
- Contributors: jameskoster, woothemes
3
  Tags: woocommerce, ecommerce, storefront, social, sharing, seo
4
  Requires at least: 3.5
5
  Tested up to: 4.1.2
6
- Stable tag: 1.0.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -33,5 +33,8 @@ This plugin will only work with the [Storefront](http://wordpress.org/themes/sto
33
 
34
  == Changelog ==
35
 
 
 
 
36
  = 1.0.0 - 04.01.2015 =
37
  Initial release.
1
  === Storefront Product Sharing ===
2
+ Contributors: jameskoster, woothemes, tiagonoronha
3
  Tags: woocommerce, ecommerce, storefront, social, sharing, seo
4
  Requires at least: 3.5
5
  Tested up to: 4.1.2
6
+ Stable tag: 1.0.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
33
 
34
  == Changelog ==
35
 
36
+ = 1.0.1 - 21.05.2015 =
37
+ * Fix - Properly encode spaces when adding the product title to the url.
38
+
39
  = 1.0.0 - 04.01.2015 =
40
  Initial release.
storefront-product-sharing.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Storefront Product Sharing
4
  * Plugin URI: http://woothemes.com/products/storefront-product-sharing/
5
  * Description: Add attractive social sharing icons for Facebook, Twitter, Pinterest and Email to your product pages.
6
- * Version: 1.0.0
7
  * Author: WooThemes
8
  * Author URI: http://woothemes.com/
9
  * Requires at least: 4.0.0
@@ -84,7 +84,7 @@ final class Storefront_Product_Sharing {
84
  $this->token = 'storefront-product-sharing';
85
  $this->plugin_url = plugin_dir_url( __FILE__ );
86
  $this->plugin_path = plugin_dir_path( __FILE__ );
87
- $this->version = '1.0.0';
88
 
89
  register_activation_hook( __FILE__, array( $this, 'install' ) );
90
 
@@ -209,9 +209,9 @@ final class Storefront_Product_Sharing {
209
  $product_img = wp_get_attachment_url( get_post_thumbnail_id() );
210
 
211
  $facebook_url = 'https://www.facebook.com/sharer/sharer.php?u=' . $product_url;
212
- $twitter_url = 'http://twitter.com/intent/tweet?status=' . $product_title . '+' . $product_url;
213
- $pinterest_url = 'http://pinterest.com/pin/create/bookmarklet/?media=' . $product_img . '&url=' . $product_url . '&is_video=false&description=' . $product_title;
214
- $email_url = 'mailto:?subject=' . $product_title . '&body=' . $product_url;
215
  ?>
216
  <div class="storefront-product-sharing">
217
  <ul>
3
  * Plugin Name: Storefront Product Sharing
4
  * Plugin URI: http://woothemes.com/products/storefront-product-sharing/
5
  * Description: Add attractive social sharing icons for Facebook, Twitter, Pinterest and Email to your product pages.
6
+ * Version: 1.0.1
7
  * Author: WooThemes
8
  * Author URI: http://woothemes.com/
9
  * Requires at least: 4.0.0
84
  $this->token = 'storefront-product-sharing';
85
  $this->plugin_url = plugin_dir_url( __FILE__ );
86
  $this->plugin_path = plugin_dir_path( __FILE__ );
87
+ $this->version = '1.0.1';
88
 
89
  register_activation_hook( __FILE__, array( $this, 'install' ) );
90
 
209
  $product_img = wp_get_attachment_url( get_post_thumbnail_id() );
210
 
211
  $facebook_url = 'https://www.facebook.com/sharer/sharer.php?u=' . $product_url;
212
+ $twitter_url = 'http://twitter.com/intent/tweet?status=' . rawurlencode( $product_title ) . '+' . $product_url;
213
+ $pinterest_url = 'http://pinterest.com/pin/create/bookmarklet/?media=' . $product_img . '&url=' . $product_url . '&is_video=false&description=' . rawurlencode( $product_title );
214
+ $email_url = 'mailto:?subject=' . rawurlencode( $product_title ) . '&body=' . $product_url;
215
  ?>
216
  <div class="storefront-product-sharing">
217
  <ul>