Changeset 54347 for trunk/src/wp-includes/revision.php
- Timestamp:
- 09/28/2022 02:45:58 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/revision.php
r53877 r54347 221 221 222 222 /** 223 * Retrieve the autosaved data of the specified post.223 * Retrieves the autosaved data of the specified post. 224 224 * 225 225 * Returns a post object with the information that was autosaved for the specified post. … … 232 232 * 233 233 * @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. 235 235 * @return WP_Post|false The autosaved data or false on failure or when no autosave exists. 236 236 */ … … 314 314 * 315 315 * @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. 317 317 * @return int|WP_Error WP_Error or 0 if error, new revision ID if success. 318 318 */ … … 363 363 * correspond to a WP_Post object, an associative array, or a numeric array, 364 364 * respectively. Default OBJECT. 365 * @param string $filter Optional sanit ation filter. See sanitize_post().365 * @param string $filter Optional sanitization filter. See sanitize_post(). 366 366 * @return WP_Post|array|null WP_Post (or array) on success, or null on failure. 367 367 */ … … 614 614 615 615 /** 616 * Determine ifrevisions are enabled for a given post.616 * Determines whether revisions are enabled for a given post. 617 617 * 618 618 * @since 3.6.0 … … 626 626 627 627 /** 628 * Determine how many revisions to retain for a given post.628 * Determines how many revisions to retain for a given post. 629 629 * 630 630 * By default, an infinite number of revisions are kept. … … 831 831 832 832 /** 833 * Upgrade the revisions author, add the current post as a revision and set the revisions version to 1833 * Upgrades the revisions author, adds the current post as a revision and sets the revisions version to 1. 834 834 * 835 835 * @since 3.6.0 … … 838 838 * @global wpdb $wpdb WordPress database abstraction object. 839 839 * 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. 843 843 */ 844 844 function _wp_upgrade_revisions_of_post( $post, $revisions ) {
Note: See TracChangeset
for help on using the changeset viewer.