From c614b0f91ac54b4fdb22753cc3a36a91be106f0d Mon Sep 17 00:00:00 2001 From: "Drew Jaynes (DrewAPicture)" Date: Thu, 30 Oct 2014 23:49:43 +0000 Subject: [PATCH] Correct two parameter types in the `wp_save_post_revision_check_for_changes` hook documentation. Props johnbillion. Fixes #30185. git-svn-id: https://develop.svn.wordpress.org/trunk@30119 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/revision.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wp-includes/revision.php b/src/wp-includes/revision.php index 48fbb21189..62f0fbc030 100644 --- a/src/wp-includes/revision.php +++ b/src/wp-includes/revision.php @@ -116,10 +116,10 @@ function wp_save_post_revision( $post_id ) { * * @since 3.6.0 * - * @param bool $check_for_changes Whether to check for changes before saving a new revision. - * Default true. - * @param int $last_revision ID of the last revision. - * @param int $post Post ID. + * @param bool $check_for_changes Whether to check for changes before saving a new revision. + * Default true. + * @param WP_Post $last_revision The the last revision post object. + * @param WP_Post $post The post object. * */ if ( isset( $last_revision ) && apply_filters( 'wp_save_post_revision_check_for_changes', $check_for_changes = true, $last_revision, $post ) ) {