Shortcodes by Angie Makes - Version 1.80

Version Description

Download this release

Release Info

Developer cbaldelomar
Plugin Icon wp plugin Shortcodes by Angie Makes
Version 1.80
Comparing to
See all releases

Code changes from version 1.79 to 1.80

README.md CHANGED
@@ -66,7 +66,7 @@ Use the shortcode manager in the TinyMCE text editor
66
 
67
  ## Changelog ##
68
 
69
- ### Version 1.79
70
 
71
  * changed urlencode to rawurlencode
72
  * Updated share links
66
 
67
  ## Changelog ##
68
 
69
+ ### Version 1.80
70
 
71
  * changed urlencode to rawurlencode
72
  * Updated share links
includes/shortcode-functions.php CHANGED
@@ -1480,6 +1480,8 @@ if ( ! function_exists('wc_shortcodes_share_buttons') ) {
1480
  if ( empty( $share_buttons ) || ! is_array( $share_buttons ) )
1481
  return '';
1482
 
 
 
1483
  // classes
1484
  $classes = array();
1485
 
@@ -1528,7 +1530,7 @@ if ( ! function_exists('wc_shortcodes_share_buttons') ) {
1528
  break;
1529
  case 'facebook' :
1530
  $html .= '<li class="wc-shortcodes-share-button-icon wc-shortcode-share-button-icon-' . $key . $first_class . '">';
1531
- $html .='<a target="_blank" href="http://www.facebook.com/sharer/sharer.php?u='.get_permalink().'&amp;t='.rawurlencode(get_the_title()).'">';
1532
  switch ( $format ) {
1533
  case 'image' :
1534
  $html .= '<img src="'.$icon_url.'" alt="'.$icon_text.'">';
@@ -1545,7 +1547,7 @@ if ( ! function_exists('wc_shortcodes_share_buttons') ) {
1545
  break;
1546
  case 'twitter' :
1547
  $html .= '<li class="wc-shortcodes-share-button-icon wc-shortcode-share-button-icon-' . $key . $first_class . '">';
1548
- $html .='<a target="_blank" href="https://twitter.com/share?text='.rawurlencode(get_the_title()).'&amp;url='.get_permalink().'" class="share-button-twitter" data-lang="en">';
1549
  switch ( $format ) {
1550
  case 'image' :
1551
  $html .= '<img src="'.$icon_url.'" alt="'.$icon_text.'">';
@@ -1562,7 +1564,7 @@ if ( ! function_exists('wc_shortcodes_share_buttons') ) {
1562
  break;
1563
  case 'email' :
1564
  $html .= '<li class="wc-shortcodes-share-button-icon wc-shortcode-share-button-icon-' . $key . $first_class . '">';
1565
- $html .='<a title="Share by Email" href="mailto:?subject='.rawurlencode(get_the_title()).'&amp;body='.get_permalink().'">';
1566
  switch ( $format ) {
1567
  case 'image' :
1568
  $html .= '<img src="'.$icon_url.'" alt="'.$icon_text.'">';
1480
  if ( empty( $share_buttons ) || ! is_array( $share_buttons ) )
1481
  return '';
1482
 
1483
+ $charset = get_bloginfo('charset');
1484
+
1485
  // classes
1486
  $classes = array();
1487
 
1530
  break;
1531
  case 'facebook' :
1532
  $html .= '<li class="wc-shortcodes-share-button-icon wc-shortcode-share-button-icon-' . $key . $first_class . '">';
1533
+ $html .='<a target="_blank" href="http://www.facebook.com/sharer/sharer.php?u='.get_permalink().'&amp;t='.rawurlencode( html_entity_decode( get_the_title(), ENT_QUOTES, $charset ) ).'">';
1534
  switch ( $format ) {
1535
  case 'image' :
1536
  $html .= '<img src="'.$icon_url.'" alt="'.$icon_text.'">';
1547
  break;
1548
  case 'twitter' :
1549
  $html .= '<li class="wc-shortcodes-share-button-icon wc-shortcode-share-button-icon-' . $key . $first_class . '">';
1550
+ $html .='<a target="_blank" href="https://twitter.com/share?text='.rawurlencode( html_entity_decode( get_the_title(), ENT_QUOTES, $charset ) ).'&amp;url='.get_permalink().'" class="share-button-twitter" data-lang="en">';
1551
  switch ( $format ) {
1552
  case 'image' :
1553
  $html .= '<img src="'.$icon_url.'" alt="'.$icon_text.'">';
1564
  break;
1565
  case 'email' :
1566
  $html .= '<li class="wc-shortcodes-share-button-icon wc-shortcode-share-button-icon-' . $key . $first_class . '">';
1567
+ $html .='<a title="Share by Email" href="mailto:?subject='.rawurlencode( html_entity_decode( get_the_title(), ENT_QUOTES, $charset ) ).'&amp;body='.get_permalink().'">';
1568
  switch ( $format ) {
1569
  case 'image' :
1570
  $html .= '<img src="'.$icon_url.'" alt="'.$icon_text.'">';
readme.txt CHANGED
@@ -88,7 +88,7 @@ Use the shortcode manager in the TinyMCE text editor
88
 
89
  == Changelog ==
90
 
91
- = Version 1.79 =
92
 
93
  * changed urlencode to rawurlencode
94
  * Updated share links
88
 
89
  == Changelog ==
90
 
91
+ = Version 1.80 =
92
 
93
  * changed urlencode to rawurlencode
94
  * Updated share links
wc-shortcodes.php CHANGED
@@ -5,11 +5,11 @@ Plugin URI: http://webplantmedia.com/starter-themes/wordpresscanvas/features/sho
5
  Description: A family of shortcodes to enhance site functionality.
6
  Author: Chris Baldelomar
7
  Author URI: http://webplantmedia.com/
8
- Version: 1.79
9
  License: GPLv2 or later
10
  */
11
 
12
- define( 'WC_SHORTCODES_VERSION', '1.79' );
13
  define( 'WC_SHORTCODES_PREFIX', 'wc_shortcodes_' );
14
  define( '_WC_SHORTCODES_PREFIX', '_wc_shortcodes_' );
15
  define( 'WC_SHORTCODES_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
5
  Description: A family of shortcodes to enhance site functionality.
6
  Author: Chris Baldelomar
7
  Author URI: http://webplantmedia.com/
8
+ Version: 1.80
9
  License: GPLv2 or later
10
  */
11
 
12
+ define( 'WC_SHORTCODES_VERSION', '1.80' );
13
  define( 'WC_SHORTCODES_PREFIX', 'wc_shortcodes_' );
14
  define( '_WC_SHORTCODES_PREFIX', '_wc_shortcodes_' );
15
  define( 'WC_SHORTCODES_PLUGIN_URL', plugin_dir_url( __FILE__ ) );