Correct two parameter types in the wp_save_post_revision_check_for_changes hook documentation.

Props johnbillion.
Fixes #30185.

Built from https://develop.svn.wordpress.org/trunk@30119


git-svn-id: http://core.svn.wordpress.org/trunk@30119 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2014-10-30 23:50:22 +00:00
parent 6745b8a870
commit e8f68802c6
2 changed files with 5 additions and 5 deletions

View File

@ -116,10 +116,10 @@ function wp_save_post_revision( $post_id ) {
* *
* @since 3.6.0 * @since 3.6.0
* *
* @param bool $check_for_changes Whether to check for changes before saving a new revision. * @param bool $check_for_changes Whether to check for changes before saving a new revision.
* Default true. * Default true.
* @param int $last_revision ID of the last revision. * @param WP_Post $last_revision The the last revision post object.
* @param int $post Post ID. * @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 ) ) { if ( isset( $last_revision ) && apply_filters( 'wp_save_post_revision_check_for_changes', $check_for_changes = true, $last_revision, $post ) ) {

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.1-alpha-30118'; $wp_version = '4.1-alpha-30119';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.