mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-13 15:20:06 +01:00
Docs: Correct the type for transition_comment_status
action parameters.
By the time this hook runs, the `$new_status` and `$old_status` values can only be a string. Follow-up to [26491]. See #62281. Built from https://develop.svn.wordpress.org/trunk@59871 git-svn-id: http://core.svn.wordpress.org/trunk@59213 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
365645c608
commit
91f31a5169
@ -1821,8 +1821,8 @@ function wp_transition_comment_status( $new_status, $old_status, $comment ) {
|
||||
*
|
||||
* @since 2.7.0
|
||||
*
|
||||
* @param int|string $new_status The new comment status.
|
||||
* @param int|string $old_status The old comment status.
|
||||
* @param string $new_status The new comment status.
|
||||
* @param string $old_status The old comment status.
|
||||
* @param WP_Comment $comment Comment object.
|
||||
*/
|
||||
do_action( 'transition_comment_status', $new_status, $old_status, $comment );
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.8-alpha-59870';
|
||||
$wp_version = '6.8-alpha-59871';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user