Remove redundant get_shortcode_regex() check.
props kovshenin. see #28195. git-svn-id: https://develop.svn.wordpress.org/trunk@28587 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6bca1ca960
commit
c2076859eb
@ -2537,8 +2537,7 @@ function wp_ajax_parse_embed() {
|
||||
setup_postdata( $post );
|
||||
|
||||
$parsed = $wp_embed->run_shortcode( $_POST['content'] );
|
||||
if ( preg_match( '/' . get_shortcode_regex() . '/s', $parsed ) ) {
|
||||
$parsed = do_shortcode( $parsed );
|
||||
}
|
||||
$parsed = do_shortcode( $parsed );
|
||||
|
||||
wp_send_json_success( $parsed );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user