Inline documentation fixes and additions for wp-admin/revision.php and wp-admin/includes/revision.php.
props adamsilverstein. see #25283. Built from https://develop.svn.wordpress.org/trunk@25419 git-svn-id: http://core.svn.wordpress.org/trunk@25344 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
77614b547f
commit
b01adf9615
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
/**
|
||||
* WordPress Administration Revisions API.
|
||||
* WordPress Administration Revisions API
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Administration
|
||||
|
@ -11,12 +11,12 @@
|
|||
*
|
||||
* @since 3.6.0
|
||||
*
|
||||
* @param object $post The post object.
|
||||
* @param int $compare_from The revision id to compare from.
|
||||
* @param int $compare_to The revision id to come to.
|
||||
* @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_to The revision ID to come to.
|
||||
*
|
||||
* @return array|bool Associative array of a post's revisioned fields and their diffs.
|
||||
* Or, false on failure.
|
||||
* Or, false on failure.
|
||||
*/
|
||||
function wp_get_revision_ui_diff( $post, $compare_from, $compare_to ) {
|
||||
if ( ! $post = get_post( $post ) )
|
||||
|
@ -85,9 +85,9 @@ function wp_get_revision_ui_diff( $post, $compare_from, $compare_to ) {
|
|||
*
|
||||
* @since 3.6.0
|
||||
*
|
||||
* @param object $post The post object.
|
||||
* @param int $selected_revision_id The selected revision id.
|
||||
* @param int $from (optional) The revision id to compare from.
|
||||
* @param object|int $post The post object. Also accepts a post ID.
|
||||
* @param int $selected_revision_id The selected revision ID.
|
||||
* @param int $from Optional. The revision ID to compare from.
|
||||
*
|
||||
* @return array An associative array of revision data and related settings.
|
||||
*/
|
||||
|
|
|
@ -1,9 +1,18 @@
|
|||
<?php
|
||||
/**
|
||||
* Revisions administration panel.
|
||||
* Revisions administration panel
|
||||
*
|
||||
* Requires wp-admin/includes/revision.php.
|
||||
*
|
||||
* @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 */
|
||||
|
|
Loading…
Reference in New Issue