Skip to content

Commit 9034e0a

Browse files
authored
Merge pull request #17 from lchheng/pymsrc-attr-fixes
pymsrc attribute fixes
2 parents f705a41 + c5407a1 commit 9034e0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pym-shortcode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function pym_shortcode( $atts, $context, $tag ) {
3939

4040
// If this is the first one on the page, output the pym src
4141
// or if the pymsrc is set, output that.
42-
if ( 0 === $pym_id || $atts['pymscr'] ) {
42+
if ( 0 === $pym_id || ! empty( $atts['pymsrc'] ) ) {
4343
echo sprintf(
4444
'<script src="%s"></script>',
4545
$pymsrc

0 commit comments

Comments
 (0)