Make WordPress Core

Ticket #45030: 45030.3.patch

File 45030.3.patch, 693 bytes (added by mukesh27, 6 years ago)
  • post.php

    diff -Naur old/post.php new/post.php
    old new  
    33843384         * @param array $new_postarr Array of parsed post data.
    33853385         * @param array $postarr     Array of sanitized, but otherwise unmodified post data.
    33863386         */
    3387         $post_parent = apply_filters( 'wp_insert_post_parent', $post_parent, $post_ID, compact( array_keys( $postarr ) ), $postarr );
     3387        $new_postarr = compact( array_keys( $postarr ) );
     3388        $post_parent = apply_filters( 'wp_insert_post_parent', $post_parent, $post_ID, $new_postarr, $postarr );
    33883389
    33893390        /*
    33903391         * If the post is being untrashed and it has a desired slug stored in post meta,