WordPress.org

Make WordPress Core

Changeset 28587


Ignore:
Timestamp:
05/27/14 11:29:11 (3 years ago)
Author:
SergeyBiryukov
Message:

Remove redundant get_shortcode_regex() check.

props kovshenin.
see #28195.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ajax-actions.php

    r28581 r28587  
    25382538 
    25392539    $parsed = $wp_embed->run_shortcode( $_POST['content'] ); 
    2540     if ( preg_match( '/' . get_shortcode_regex() . '/s', $parsed ) ) { 
    2541         $parsed = do_shortcode( $parsed ); 
    2542     } 
     2540    $parsed = do_shortcode( $parsed ); 
     2541 
    25432542    wp_send_json_success( $parsed ); 
    25442543} 
Note: See TracChangeset for help on using the changeset viewer.