Changeset 42397
- Timestamp:
- 12/15/2017 01:01:01 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r42383 r42397 6252 6252 6253 6253 /** 6254 * Return the post's parent 's post_ID6254 * Return the post's parent post ID. 6255 6255 * 6256 6256 * @since 3.1.0 6257 6257 * 6258 * @param int $post_ID 6259 * 6258 * @param int|WP_Post $post Post ID or post object. Defaults to global $post. 6260 6259 * @return int|false Post parent ID, otherwise false. 6261 6260 */ 6262 function wp_get_post_parent_id( $post _ID) {6263 $post = get_post( $post _ID);6261 function wp_get_post_parent_id( $post ) { 6262 $post = get_post( $post ); 6264 6263 if ( ! $post || is_wp_error( $post ) ) { 6265 6264 return false;
Note: See TracChangeset
for help on using the changeset viewer.