WordPress.org

Make WordPress Core

Ticket #45030: 45030.patch

File 45030.patch, 536 bytes (added by mukesh27, 2 years ago)
  • post.php

    diff -Naur old/post.php new/post.php
    old new  
    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 );