Shortcodes by Angie Makes - Version 1.8

Version Description

Download this release

Release Info

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

Code changes from version 1.7 to 1.8

Files changed (4) hide show
  1. README.md +4 -0
  2. includes/functions.php +4 -2
  3. readme.txt +4 -0
  4. wc-shortcodes.php +1 -1
README.md CHANGED
@@ -44,6 +44,10 @@ Use the shortcode manager in the TinyMCE text editor
44
 
45
  ## Changelog ##
46
 
 
 
 
 
47
  ### Version 1.7
48
 
49
  * Better facebook and pinterest icons
44
 
45
  ## Changelog ##
46
 
47
+ ### Version 1.8
48
+
49
+ * Email link can be either mailto address or hyperlink
50
+
51
  ### Version 1.7
52
 
53
  * Better facebook and pinterest icons
includes/functions.php CHANGED
@@ -10,8 +10,10 @@ function wc_shortcodes_smart_social_link( $social_link, $name ) {
10
  switch ( $name ) {
11
  case 'email' :
12
  // some users may have already inserted mailto:, so let's remove it.
13
- $social_link = str_replace( 'mailto:', '', $social_link );
14
- $social_link = 'mailto:'.$social_link;
 
 
15
  break;
16
  }
17
 
10
  switch ( $name ) {
11
  case 'email' :
12
  // some users may have already inserted mailto:, so let's remove it.
13
+ if ( is_email( $social_link ) ) {
14
+ $social_link = str_replace( 'mailto:', '', $social_link );
15
+ $social_link = 'mailto:'.$social_link;
16
+ }
17
  break;
18
  }
19
 
readme.txt CHANGED
@@ -44,6 +44,10 @@ Use the shortcode manager in the TinyMCE text editor
44
 
45
  == Changelog ==
46
 
 
 
 
 
47
  ### Version 1.7
48
 
49
  * Better facebook and pinterest icons
44
 
45
  == Changelog ==
46
 
47
+ ### Version 1.8
48
+
49
+ * Email link can be either mailto address or hyperlink
50
+
51
  ### Version 1.7
52
 
53
  * Better facebook and pinterest icons
wc-shortcodes.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://wordpresscanvas.com/features/shortcodes/
5
  Description: A family of shortcodes to enhance site functionality.
6
  Author: Chris Baldelomar
7
  Author URI: http://webplantmedia.com/
8
- Version: 1.7
9
  License: GPLv2 or later
10
  */
11
 
5
  Description: A family of shortcodes to enhance site functionality.
6
  Author: Chris Baldelomar
7
  Author URI: http://webplantmedia.com/
8
+ Version: 1.8
9
  License: GPLv2 or later
10
  */
11