From c5407a183a5dc6de69fce6e956b626d78dbe7b7f Mon Sep 17 00:00:00 2001 From: lchheng Date: Fri, 10 Mar 2017 11:36:38 -0500 Subject: [PATCH] refix typoed attribute name for pymsrc that reappeared and check if empty --- pym-shortcode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym-shortcode.php b/pym-shortcode.php index 1d8013f..63ea0a2 100644 --- a/pym-shortcode.php +++ b/pym-shortcode.php @@ -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( '', $pymsrc