WordPress.org

Make WordPress Core

Ticket #25283: wp-admin-includes-revisions.diff

File wp-admin-includes-revisions.diff, 1.3 KB (added by adamsilverstein, 8 years ago)
  • wp-admin/includes/revision.php

     
    1111 *
    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 ) {
    2222        if ( ! $post = get_post( $post ) )
     
    8585 *
    8686 * @since 3.6.0
    8787 *
    88  * @param object $post The post object.
     88 * @param object|int $post          The post object. Also accepts a post ID.
    8989 * @param int $selected_revision_id The selected revision id.
    90  * @param int $from (optional) The revision id to compare from.
     90 * @param int $from                 Optional. The revision id to compare from.
    9191 *
    9292 * @return array An associative array of revision data and related settings.
    9393 */