mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-04 14:47:02 +00:00
Docs: Various docblock corrections and improvements.
See #50768 git-svn-id: https://develop.svn.wordpress.org/trunk@48941 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -796,12 +796,12 @@ function get_post( $post = null, $output = OBJECT, $filter = 'raw' ) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve ancestors of a post.
|
||||
* Retrieves the IDs of the ancestors of a post.
|
||||
*
|
||||
* @since 2.5.0
|
||||
*
|
||||
* @param int|WP_Post $post Post ID or post object.
|
||||
* @return int[] Ancestor IDs or empty array if none are found.
|
||||
* @return int[] Array of ancestor IDs or empty array if there are none.
|
||||
*/
|
||||
function get_post_ancestors( $post ) {
|
||||
$post = get_post( $post );
|
||||
|
||||
Reference in New Issue
Block a user