Make WordPress Core


Ignore:
Timestamp:
09/28/2022 02:45:58 PM (2 years ago)
Author:
audrasjb
Message:

Docs: Various docblock fixes in wp-includes/revision.php, as per documentation standards.

See #55646.

File:
1 edited

Legend:

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

    r53877 r54347  
    221221
    222222/**
    223  * Retrieve the autosaved data of the specified post.
     223 * Retrieves the autosaved data of the specified post.
    224224 *
    225225 * Returns a post object with the information that was autosaved for the specified post.
     
    232232 *
    233233 * @param int $post_id The post ID.
    234  * @param int $user_id Optional The post author ID.
     234 * @param int $user_id Optional. The post author ID.
    235235 * @return WP_Post|false The autosaved data or false on failure or when no autosave exists.
    236236 */
     
    314314 *
    315315 * @param int|WP_Post|array|null $post     Post ID, post object OR post array.
    316  * @param bool                   $autosave Optional. Is the revision an autosave?
     316 * @param bool                   $autosave Optional. Whether the revision is an autosave or not.
    317317 * @return int|WP_Error WP_Error or 0 if error, new revision ID if success.
    318318 */
     
    363363 *                            correspond to a WP_Post object, an associative array, or a numeric array,
    364364 *                            respectively. Default OBJECT.
    365  * @param string      $filter Optional sanitation filter. See sanitize_post().
     365 * @param string      $filter Optional sanitization filter. See sanitize_post().
    366366 * @return WP_Post|array|null WP_Post (or array) on success, or null on failure.
    367367 */
     
    614614
    615615/**
    616  * Determine if revisions are enabled for a given post.
     616 * Determines whether revisions are enabled for a given post.
    617617 *
    618618 * @since 3.6.0
     
    626626
    627627/**
    628  * Determine how many revisions to retain for a given post.
     628 * Determines how many revisions to retain for a given post.
    629629 *
    630630 * By default, an infinite number of revisions are kept.
     
    831831
    832832/**
    833  * Upgrade the revisions author, add the current post as a revision and set the revisions version to 1
     833 * Upgrades the revisions author, adds the current post as a revision and sets the revisions version to 1.
    834834 *
    835835 * @since 3.6.0
     
    838838 * @global wpdb $wpdb WordPress database abstraction object.
    839839 *
    840  * @param WP_Post $post      Post object
    841  * @param array   $revisions Current revisions of the post
    842  * @return bool true if the revisions were upgraded, false if problems
     840 * @param WP_Post $post      Post object.
     841 * @param array   $revisions Current revisions of the post.
     842 * @return bool true if the revisions were upgraded, false if problems.
    843843 */
    844844function _wp_upgrade_revisions_of_post( $post, $revisions ) {
Note: See TracChangeset for help on using the changeset viewer.