mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-20 19:24:32 +00:00
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:
@@ -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 ) ) {
|
||||
|
||||
Reference in New Issue
Block a user