Version Description
Download this release
Release Info
Developer | cbaldelomar |
Plugin | Shortcodes by Angie Makes |
Version | 1.6 |
Comparing to | |
See all releases |
Code changes from version 1.5 to 1.6
- README.md +4 -0
- includes/shortcode-functions.php +4 -0
- includes/widgets.php +3 -0
- readme.txt +4 -0
- 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.5
|
48 |
|
49 |
* prepended mailto to email addresses
|
44 |
|
45 |
## Changelog ##
|
46 |
|
47 |
+
### Version 1.6
|
48 |
+
|
49 |
+
* Fixed bug with social icons displaying even if social link was not given.
|
50 |
+
|
51 |
### Version 1.5
|
52 |
|
53 |
* prepended mailto to email addresses
|
includes/shortcode-functions.php
CHANGED
@@ -349,6 +349,10 @@ if( !function_exists('wc_shortcodes_social_icons') ) {
|
|
349 |
if ( $icon_url = get_option( $icon_option_name ) ) {
|
350 |
$social_link = get_option( $link_option_name );
|
351 |
$social_link = apply_filters( 'wc_shortcodes_social_link', $social_link, $key );
|
|
|
|
|
|
|
|
|
352 |
$first_class = $first ? ' first-icon' : '';
|
353 |
$first = false;
|
354 |
|
349 |
if ( $icon_url = get_option( $icon_option_name ) ) {
|
350 |
$social_link = get_option( $link_option_name );
|
351 |
$social_link = apply_filters( 'wc_shortcodes_social_link', $social_link, $key );
|
352 |
+
|
353 |
+
if ( empty( $social_link ) )
|
354 |
+
continue;
|
355 |
+
|
356 |
$first_class = $first ? ' first-icon' : '';
|
357 |
$first = false;
|
358 |
|
includes/widgets.php
CHANGED
@@ -63,6 +63,9 @@ class WC_Shortcodes_Social_Icons_Widget extends WP_Widget {
|
|
63 |
$social_link = get_option( $link_option_name );
|
64 |
$social_link = apply_filters( 'wc_shortcodes_social_link', $social_link, $key );
|
65 |
|
|
|
|
|
|
|
66 |
if ( $first )
|
67 |
$li_class[] = 'first-icon';
|
68 |
|
63 |
$social_link = get_option( $link_option_name );
|
64 |
$social_link = apply_filters( 'wc_shortcodes_social_link', $social_link, $key );
|
65 |
|
66 |
+
if ( empty( $social_link ) )
|
67 |
+
continue;
|
68 |
+
|
69 |
if ( $first )
|
70 |
$li_class[] = 'first-icon';
|
71 |
|
readme.txt
CHANGED
@@ -44,6 +44,10 @@ Use the shortcode manager in the TinyMCE text editor
|
|
44 |
|
45 |
== Changelog ==
|
46 |
|
|
|
|
|
|
|
|
|
47 |
### Version 1.5
|
48 |
|
49 |
* prepended mailto to email addresses
|
44 |
|
45 |
== Changelog ==
|
46 |
|
47 |
+
### Version 1.6
|
48 |
+
|
49 |
+
* Fixed bug with social icons displaying even if social link was not given.
|
50 |
+
|
51 |
### Version 1.5
|
52 |
|
53 |
* prepended mailto to email addresses
|
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.
|
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.6
|
9 |
License: GPLv2 or later
|
10 |
*/
|
11 |
|