From e635606cc127a32800482c9d9efb4864f29daa2b Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Wed, 16 Dec 2015 23:17:39 +0000 Subject: [PATCH] Docs: Add a missing notation for the `$args` parameter in the DocBlock for `wp_get_post_revisions()`. See #32246. git-svn-id: https://develop.svn.wordpress.org/trunk@35981 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/revision.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/revision.php b/src/wp-includes/revision.php index 2f482e0ceb..03c04666a9 100644 --- a/src/wp-includes/revision.php +++ b/src/wp-includes/revision.php @@ -411,7 +411,10 @@ function wp_delete_post_revision( $revision_id ) { * * @since 2.6.0 * - * @param int|WP_Post $post_id Optional. Post ID or WP_Post object. Default is global $post. + * @see get_children() + * + * @param int|WP_Post $post_id Optional. Post ID or WP_Post object. Default is global `$post`. + * @param array|null $args Optional. Arguments for retrieving post revisions. Default null. * @return array An array of revisions, or an empty array if none. */ function wp_get_post_revisions( $post_id = 0, $args = null ) {