Remove redundant get_shortcode_regex() check.
props kovshenin. see #28195. Built from https://develop.svn.wordpress.org/trunk@28587 git-svn-id: http://core.svn.wordpress.org/trunk@28412 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f4a6632200
commit
db9057f308
|
@ -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 );
|
||||
}
|
||||
|
||||
wp_send_json_success( $parsed );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue