WordPress.org

Make WordPress Core

Ticket #45030: 45030.2.patch

File 45030.2.patch, 608 bytes (added by mukesh27, 2 years ago)

updated patch with file path

  • wordpress/wp-includes/post.php

    diff -Naur wordpress/wp-includes/post.php wordpress/wp-includes/post.php
     
    33813381         *
    33823382         * @param int   $post_parent Post parent ID.
    33833383         * @param int   $post_ID     Post ID.
    3384          * @param array $new_postarr Array of parsed post data.
    33853384         * @param array $postarr     Array of sanitized, but otherwise unmodified post data.
    33863385         */
    33873386        $post_parent = apply_filters( 'wp_insert_post_parent', $post_parent, $post_ID, compact( array_keys( $postarr ) ), $postarr );