Make WordPress Core

Changeset 25419


Ignore:
Timestamp:
09/12/2013 10:58:45 PM (11 years ago)
Author:
SergeyBiryukov
Message:

Inline documentation fixes and additions for wp-admin/revision.php and wp-admin/includes/revision.php.

props adamsilverstein.
see #25283.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

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

    r24866 r25419  
    11<?php
    22/**
    3  * WordPress Administration Revisions API.
     3 * WordPress Administration Revisions API
    44 *
    55 * @package WordPress
     
    1212 * @since 3.6.0
    1313 *
    14  * @param object $post The post object.
    15  * @param int $compare_from The revision id to compare from.
    16  * @param int $compare_to The revision id to come to.
     14 * @param object|int $post         The post object. Also accepts a post ID.
     15 * @param int        $compare_from The revision ID to compare from.
     16 * @param int        $compare_to   The revision ID to come to.
    1717 *
    1818 * @return array|bool Associative array of a post's revisioned fields and their diffs.
    19  *  Or, false on failure.
     19 *                    Or, false on failure.
    2020 */
    2121function wp_get_revision_ui_diff( $post, $compare_from, $compare_to ) {
     
    8686 * @since 3.6.0
    8787 *
    88  * @param object $post The post object.
    89  * @param int $selected_revision_id The selected revision id.
    90  * @param int $from (optional) The revision id to compare from.
     88 * @param object|int $post          The post object. Also accepts a post ID.
     89 * @param int $selected_revision_id The selected revision ID.
     90 * @param int $from                 Optional. The revision ID to compare from.
    9191 *
    9292 * @return array An associative array of revision data and related settings.
  • trunk/src/wp-admin/revision.php

    r24922 r25419  
    11<?php
    22/**
    3  * Revisions administration panel.
     3 * Revisions administration panel
     4 *
     5 * Requires wp-admin/includes/revision.php.
    46 *
    57 * @package WordPress
    68 * @subpackage Administration
     9 * @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.
    716 */
    817
Note: See TracChangeset for help on using the changeset viewer.