Changeset 43819 for branches/5.0/src/wp-includes/post.php
- Timestamp:
- 10/24/2018 04:32:29 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-includes/post.php
r43806 r43819 3416 3416 } 3417 3417 3418 $new_postarr = array_merge( 3419 array( 3420 'ID' => $post_ID, 3421 ), 3422 compact( array_diff( array_keys( $defaults ), array( 'context', 'filter' ) ) ) 3423 ); 3424 3418 3425 /** 3419 3426 * Filters the post parent -- used to check for and prevent hierarchy loops. … … 3426 3433 * @param array $postarr Array of sanitized, but otherwise unmodified post data. 3427 3434 */ 3428 $post_parent = apply_filters( 'wp_insert_post_parent', $post_parent, $post_ID, compact( array_keys( $postarr ) ), $postarr );3435 $post_parent = apply_filters( 'wp_insert_post_parent', $post_parent, $post_ID, $new_postarr, $postarr ); 3429 3436 3430 3437 /*
Note: See TracChangeset
for help on using the changeset viewer.