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
This commit is contained in:
Drew Jaynes (DrewAPicture) 2014-10-30 23:49:43 +00:00
parent be87d5daad
commit c614b0f91a
1 changed files with 4 additions and 4 deletions

View File

@ -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 ) ) {