WordPress.org

Make WordPress Core

Ticket #9084: patch.diff

File patch.diff, 742 bytes (added by sirzooro, 5 years ago)
  • wp-includes/post.php

    diff -Naur ori/wp-includes/post.php new/wp-includes/post.php
    ori new  
    14601460        $data = compact( array( 'post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_content_filtered', 'post_title', 'post_excerpt', 'post_status', 'post_type', 'comment_status', 'ping_status', 'post_password', 'post_name', 'to_ping', 'pinged', 'post_modified', 'post_modified_gmt', 'post_parent', 'menu_order', 'guid' ) ); 
    14611461        $data = apply_filters('wp_insert_post_data', $data, $postarr); 
    14621462        $data = stripslashes_deep( $data ); 
     1463        extract( $data, EXTR_OVERWRITE ); 
    14631464        $where = array( 'ID' => $post_ID ); 
    14641465 
    14651466        if ($update) {