Inline documentation fixes and additions for wp-admin/revision.php and wp-admin/includes/revision.php.
props adamsilverstein. see #25283. git-svn-id: https://develop.svn.wordpress.org/trunk@25419 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9e8bcc8bcd
commit
529c973323
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* WordPress Administration Revisions API.
|
* WordPress Administration Revisions API
|
||||||
*
|
*
|
||||||
* @package WordPress
|
* @package WordPress
|
||||||
* @subpackage Administration
|
* @subpackage Administration
|
||||||
@ -11,9 +11,9 @@
|
|||||||
*
|
*
|
||||||
* @since 3.6.0
|
* @since 3.6.0
|
||||||
*
|
*
|
||||||
* @param object $post The post object.
|
* @param object|int $post The post object. Also accepts a post ID.
|
||||||
* @param int $compare_from The revision id to compare from.
|
* @param int $compare_from The revision ID to compare from.
|
||||||
* @param int $compare_to The revision id to come to.
|
* @param int $compare_to The revision ID to come to.
|
||||||
*
|
*
|
||||||
* @return array|bool Associative array of a post's revisioned fields and their diffs.
|
* @return array|bool Associative array of a post's revisioned fields and their diffs.
|
||||||
* Or, false on failure.
|
* Or, false on failure.
|
||||||
@ -85,9 +85,9 @@ function wp_get_revision_ui_diff( $post, $compare_from, $compare_to ) {
|
|||||||
*
|
*
|
||||||
* @since 3.6.0
|
* @since 3.6.0
|
||||||
*
|
*
|
||||||
* @param object $post The post object.
|
* @param object|int $post The post object. Also accepts a post ID.
|
||||||
* @param int $selected_revision_id The selected revision id.
|
* @param int $selected_revision_id The selected revision ID.
|
||||||
* @param int $from (optional) The revision id to compare from.
|
* @param int $from Optional. The revision ID to compare from.
|
||||||
*
|
*
|
||||||
* @return array An associative array of revision data and related settings.
|
* @return array An associative array of revision data and related settings.
|
||||||
*/
|
*/
|
||||||
|
@ -1,9 +1,18 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Revisions administration panel.
|
* Revisions administration panel
|
||||||
|
*
|
||||||
|
* Requires wp-admin/includes/revision.php.
|
||||||
*
|
*
|
||||||
* @package WordPress
|
* @package WordPress
|
||||||
* @subpackage Administration
|
* @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 */
|
/** WordPress Administration Bootstrap */
|
||||||
|
Loading…
Reference in New Issue
Block a user