Changeset 29546
- Timestamp:
- 08/19/2014 11:22:47 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/ajax-actions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r29490 r29546 2716 2716 } 2717 2717 2718 if ( empty( $_POST['shortcode'] ) || ! current_user_can( 'edit_post', $post->ID ) ) { 2719 wp_send_json_error(); 2720 } 2721 2718 2722 setup_postdata( $post ); 2723 $shortcode = do_shortcode( wp_unslash( $_REQUEST['shortcode'] ) ); 2724 2725 if ( empty( $shortcode ) ) { 2726 wp_send_json_error( array( 'statusText' => __( 'No items found.' ) ) ); 2727 } 2719 2728 2720 2729 ob_start(); … … 2725 2734 } 2726 2735 2727 echo do_shortcode( wp_unslash( $_REQUEST['shortcode'] ) );2736 echo $shortcode; 2728 2737 2729 2738 if ( ! empty( $wp_scripts ) ) {
Note: See TracChangeset
for help on using the changeset viewer.