@@ -220,7 +220,7 @@ function wp_save_post_revision( $post_id ) {
220220}
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.
226226 * 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 ) {
231231 * @global wpdb $wpdb WordPress database abstraction object.
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 */
237237function wp_get_post_autosave ( $ post_id , $ user_id = 0 ) {
@@ -313,7 +313,7 @@ function wp_is_post_autosave( $post ) {
313313 * @access private
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 */
319319function _wp_put_post_revision ( $ post = null , $ autosave = false ) {
@@ -362,7 +362,7 @@ function _wp_put_post_revision( $post = null, $autosave = false ) {
362362 * @param string $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which
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 */
368368function wp_get_post_revision ( &$ post , $ output = OBJECT , $ filter = 'raw ' ) {
@@ -613,7 +613,7 @@ function wp_get_post_revisions_url( $post = 0 ) {
613613}
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
619619 *
@@ -625,7 +625,7 @@ function wp_revisions_enabled( $post ) {
625625}
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.
631631 *
@@ -830,16 +830,16 @@ function _wp_get_post_revision_version( $revision ) {
830830}
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
836836 * @access private
837837 *
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 ) {
845845 global $ wpdb ;
0 commit comments