diff --git a/php/shortcodes.php b/php/shortcodes.php index 3076f653..6ba8f462 100644 --- a/php/shortcodes.php +++ b/php/shortcodes.php @@ -44,51 +44,10 @@ function qsm_quiz_link_shortcode( $atts, $content = '' ) { // Craft the target attribute if one is passed to shortcode $target_html = ''; - $allowed_tags = apply_filters( 'qsm_quiz_link_allowed_tags', array( - 'span' => array( - 'class' => true, - 'id' => true, - 'style' => true, - ), - 'a' => array( - 'href' => true, - 'target' => true, - 'class' => true, - 'id' => true, - 'rel' => true, - ), - 'img' => array( - 'src' => true, - 'alt' => true, - 'width' => true, - 'height' => true, - 'class' => true, - 'id' => true, - ), - 'div' => array( - 'class' => true, - 'id' => true, - 'style' => true, - ), - 'h1' => array( 'class' => true ), - 'h2' => array( 'class' => true ), - 'h3' => array( 'class' => true ), - 'h4' => array( 'class' => true ), - 'h5' => array( 'class' => true ), - 'h6' => array( 'class' => true ), - 'p' => array(), - 'br' => array(), - 'b' => array(), - 'strong' => array(), - 'i' => array(), - 'em' => array(), - 'u' => array(), - ) ); - if ( ! empty( $target ) ) { - return "" . wp_kses( $content, $allowed_tags ) . ''; + return "" . do_shortcode( $content ) . ''; } else { - return "" . wp_kses( $content, $allowed_tags ) . ''; + return "" . do_shortcode( $content ) . ''; } }