Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pym-shortcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function pym_shortcode( $atts, $context, $tag ) {

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