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:
parent
be87d5daad
commit
c614b0f91a
|
@ -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 ) ) {
|
||||||
|
|
Loading…
Reference in New Issue