Shortcodes by Angie Makes - Version 1.61

Version Description

Download this release

Release Info

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

Code changes from version 1.60 to 1.61

README.md CHANGED
@@ -66,6 +66,10 @@ Use the shortcode manager in the TinyMCE text editor
66
 
67
  ## Changelog ##
68
 
 
 
 
 
69
  ### Version 1.60
70
 
71
  * Removed namespace which is not supported in php 5.2
66
 
67
  ## Changelog ##
68
 
69
+ ### Version 1.61
70
+
71
+ * Fixed bug with print share link
72
+
73
  ### Version 1.60
74
 
75
  * Removed namespace which is not supported in php 5.2
includes/shortcode-functions.php CHANGED
@@ -1448,9 +1448,9 @@ if ( ! function_exists('wc_shortcodes_share_buttons') ) {
1448
  $size = sizeof( $share_buttons );
1449
  $format = get_option( WC_SHORTCODES_PREFIX . 'share_buttons_format', 'image' );
1450
 
1451
- if ( empty( $share_buttons ) )
1452
  return '';
1453
-
1454
  // classes
1455
  $classes = array();
1456
 
@@ -1571,7 +1571,7 @@ if ( ! function_exists('wc_shortcodes_share_buttons') ) {
1571
  $html .='<a href="#" onclick="javascript:window.print();return false;">';
1572
  }
1573
  else {
1574
- $html .='<a href="#" onclick="javascript:w=window.open(\''.get_permalink().'\');w.print();w.close();return false;">';
1575
  }
1576
  switch ( $format ) {
1577
  case 'image' :
1448
  $size = sizeof( $share_buttons );
1449
  $format = get_option( WC_SHORTCODES_PREFIX . 'share_buttons_format', 'image' );
1450
 
1451
+ if ( empty( $share_buttons ) || ! is_array( $share_buttons ) )
1452
  return '';
1453
+
1454
  // classes
1455
  $classes = array();
1456
 
1571
  $html .='<a href="#" onclick="javascript:window.print();return false;">';
1572
  }
1573
  else {
1574
+ $html .='<a href="#" onclick="javascript:void((function($){w=window.open(\''.get_permalink().'\');$(w).load(function(){setTimeout(function(){w.print();},1000);});})(jQuery));return false;">';
1575
  }
1576
  switch ( $format ) {
1577
  case 'image' :
readme.txt CHANGED
@@ -88,6 +88,10 @@ Use the shortcode manager in the TinyMCE text editor
88
 
89
  == Changelog ==
90
 
 
 
 
 
91
  = Version 1.60 =
92
 
93
  * Removed namespace which is not supported in php 5.2
88
 
89
  == Changelog ==
90
 
91
+ = Version 1.61 =
92
+
93
+ * Fixed bug with print share link
94
+
95
  = Version 1.60 =
96
 
97
  * Removed namespace which is not supported in php 5.2
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.60
9
  License: GPLv2 or later
10
  */
11
 
12
- define( 'WC_SHORTCODES_VERSION', '1.60' );
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.61
9
  License: GPLv2 or later
10
  */
11
 
12
+ define( 'WC_SHORTCODES_VERSION', '1.61' );
13
  define( 'WC_SHORTCODES_PREFIX', 'wc_shortcodes_' );
14
  define( '_WC_SHORTCODES_PREFIX', '_wc_shortcodes_' );
15
  define( 'WC_SHORTCODES_PLUGIN_URL', plugin_dir_url( __FILE__ ) );