mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-13 07:10:00 +01:00
Docs: Correct the type for ::prepare_status_response()
parameter in WP_REST_Comments_Controller
.
The accepted value is `WP_Comment::$comment_approved`, which is documented as a string. Follow-up to [38832], [33891], [39015], [59805], [59871]. See #62281. Built from https://develop.svn.wordpress.org/trunk@59882 git-svn-id: http://core.svn.wordpress.org/trunk@59224 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
741a914df3
commit
f37de3c6ac
@ -1247,7 +1247,7 @@ class WP_REST_Comments_Controller extends WP_REST_Controller {
|
||||
*
|
||||
* @since 4.7.0
|
||||
*
|
||||
* @param string|int $comment_approved comment status.
|
||||
* @param string $comment_approved Comment status.
|
||||
* @return string Comment status.
|
||||
*/
|
||||
protected function prepare_status_response( $comment_approved ) {
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.8-alpha-59881';
|
||||
$wp_version = '6.8-alpha-59882';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user