wp_send_json_error( array
( 'type' => 'not-embeddable',
/* translators: %s: URL that could not be embedded. */
'message' =>
sprintf( __( '%s failed to embed.'
), '<code>' .
esc_html( $url ) . '</code>'
),
) );
} if ( has_shortcode( $parsed, 'audio'
) ||
has_shortcode( $parsed, 'video'
) ) { $styles = '';
$mce_styles =
wpview_media_sandbox_styles();
foreach ( $mce_styles as $style ) { $styles .=
sprintf( '<link rel="stylesheet" href="%s" />',
$style );
} $html =
do_shortcode( $parsed );
global $wp_scripts;
if ( !
empty( $wp_scripts ) ) { $wp_scripts->done = array
();
}