protected function doShortcode( $tag, $shortcode ) {

		if ( 'embed' === $tag ) {

			return $GLOBALS['wp_embed']->run_shortcode( $shortcode );

		} elseif ( 'video' === $tag ) {

			// Need to filter dimensions here to overwrite WP's
			// `<div>` surrounding the [video] shortcode.
			return do_shortcode( $this->filterDimensions( $shortcode ) );
		}

		return do_shortcode( $shortcode );
	}
protected function doShortcode( $tag, $shortcode ) {

		if ( 'embed' === $tag ) {

			return $GLOBALS['wp_embed']->run_shortcode( $shortcode );

		} elseif ( 'video' === $tag ) {

			// Need to filter dimensions here to overwrite WP's
			// `<div>` surrounding the [video] shortcode.
			return do_shortcode( $this->filterDimensions( $shortcode ) );
		}

		return do_shortcode( $shortcode );
	}
protected function doShortcode ( $ tag , $ shortcode ) { if ( 'embed' === $ tag ) { return $ GLOBALS [ 'wp_embed' ] -> run_shortcode ( $ shortcode ) ; } elseif ( 'video' === $ tag ) { // Need to filter dimensions here to overwrite WP's // `<div>` surrounding the [video] shortcode. return do_shortcode ( $ this -> filterDimensions ( $ shortcode ) ) ; } return do_shortcode ( $ shortcode ) ; }
Helper function for running a shortcode.

@since  5.0.0
@access protected
@param  string    $tag
@param  string    $shortcode
@return string
Helper function for running a shortcode .