From a1ce238e6f31e06bb583f67f4ca50a10242a7bdd Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 8 Mar 2018 03:52:24 +0000 Subject: [PATCH] Docs: Document globals in `wp-admin/revision.php` as `@global` instead of `@param`. See #42505. git-svn-id: https://develop.svn.wordpress.org/trunk@42795 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/revision.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/wp-admin/revision.php b/src/wp-admin/revision.php index 18719a1dde..e6ae445293 100644 --- a/src/wp-admin/revision.php +++ b/src/wp-admin/revision.php @@ -7,12 +7,6 @@ * @package WordPress * @subpackage Administration * @since 2.6.0 - * - * @param int revision Optional. The revision ID. - * @param string action The action to take. - * Accepts 'restore', 'view' or 'edit'. - * @param int from The revision to compare from. - * @param int to Optional, required if revision missing. The revision to compare to. */ /** WordPress Administration Bootstrap */ @@ -20,6 +14,13 @@ require_once( dirname( __FILE__ ) . '/admin.php' ); require ABSPATH . 'wp-admin/includes/revision.php'; +/** + * @global int $revision Optional. The revision ID. + * @global string $action The action to take. + * Accepts 'restore', 'view' or 'edit'. + * @global int $from The revision to compare from. + * @global int $to Optional, required if revision missing. The revision to compare to. + */ wp_reset_vars( array( 'revision', 'action', 'from', 'to' ) ); $revision_id = absint( $revision );