Changeset 50396 for trunk/src/wp-includes/post-template.php
- Timestamp:
- 02/20/2021 05:43:55 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-template.php
r50127 r50396 1973 1973 * @return WP_Post|null Parent post object, or null if there isn't one. 1974 1974 */ 1975 function get_p arent_post( $post = null ) {1975 function get_post_parent( $post = null ) { 1976 1976 $wp_post = get_post( $post ); 1977 1977 return ! empty( $wp_post->post_parent ) ? get_post( $wp_post->post_parent ) : null; … … 1986 1986 * @return bool Whether the post has a parent post. 1987 1987 */ 1988 function has_p arent_post( $post = null ) {1989 return (bool) get_p arent_post( $post );1990 } 1988 function has_post_parent( $post = null ) { 1989 return (bool) get_post_parent( $post ); 1990 }
Note: See TracChangeset
for help on using the changeset viewer.