Docs: Document globals in `wp-admin/revision.php` as `@global` instead of `@param`.
See #42505. Built from https://develop.svn.wordpress.org/trunk@42795 git-svn-id: http://core.svn.wordpress.org/trunk@42625 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ffedf3d752
commit
24f43065b9
|
@ -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 );
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.0-alpha-42794';
|
||||
$wp_version = '5.0-alpha-42795';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue