Make WordPress Core

Changeset 42795


Ignore:
Timestamp:
03/08/2018 03:52:24 AM (7 years ago)
Author:
SergeyBiryukov
Message:

Docs: Document globals in wp-admin/revision.php as @global instead of @param.

See #42505.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/revision.php

    r42343 r42795  
    88 * @subpackage Administration
    99 * @since 2.6.0
    10  *
    11  * @param int    revision Optional. The revision ID.
    12  * @param string action   The action to take.
    13  *                        Accepts 'restore', 'view' or 'edit'.
    14  * @param int    from     The revision to compare from.
    15  * @param int    to       Optional, required if revision missing. The revision to compare to.
    1610 */
    1711
     
    2115require ABSPATH . 'wp-admin/includes/revision.php';
    2216
     17/**
     18 * @global int    $revision Optional. The revision ID.
     19 * @global string $action   The action to take.
     20 *                          Accepts 'restore', 'view' or 'edit'.
     21 * @global int    $from     The revision to compare from.
     22 * @global int    $to       Optional, required if revision missing. The revision to compare to.
     23 */
    2324wp_reset_vars( array( 'revision', 'action', 'from', 'to' ) );
    2425
Note: See TracChangeset for help on using the changeset viewer.