@@ -220,7 +220,7 @@ function wp_save_post_revision( $post_id ) {
220
220
}
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.
226
226
* If the optional $user_id is passed, returns the autosave for that user, otherwise
@@ -231,7 +231,7 @@ function wp_save_post_revision( $post_id ) {
231
231
* @global wpdb $wpdb WordPress database abstraction object.
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
*/
237
237
function wp_get_post_autosave ( $ post_id , $ user_id = 0 ) {
@@ -313,7 +313,7 @@ function wp_is_post_autosave( $post ) {
313
313
* @access private
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
*/
319
319
function _wp_put_post_revision ( $ post = null , $ autosave = false ) {
@@ -362,7 +362,7 @@ function _wp_put_post_revision( $post = null, $autosave = false ) {
362
362
* @param string $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which
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 sanitation 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
*/
368
368
function wp_get_post_revision ( &$ post , $ output = OBJECT , $ filter = 'raw ' ) {
@@ -613,7 +613,7 @@ function wp_get_post_revisions_url( $post = 0 ) {
613
613
}
614
614
615
615
/**
616
- * Determine if revisions are enabled for a given post.
616
+ * Determines whether revisions are enabled for a given post.
617
617
*
618
618
* @since 3.6.0
619
619
*
@@ -625,7 +625,7 @@ function wp_revisions_enabled( $post ) {
625
625
}
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.
631
631
*
@@ -830,16 +830,16 @@ function _wp_get_post_revision_version( $revision ) {
830
830
}
831
831
832
832
/**
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.
834
834
*
835
835
* @since 3.6.0
836
836
* @access private
837
837
*
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 ) {
845
845
global $ wpdb ;
0 commit comments