Docs: Correct the type for some method parameters in WP_REST_Server class.
Follow-up to [34928]. Props dilipbheda, mukesh27, kirasong, shailu25, khushdoms, welcher, audrasjb, SergeyBiryukov. See #63249. Built from https://develop.svn.wordpress.org/trunk@61113 git-svn-id: http://core.svn.wordpress.org/trunk@60449 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -224,9 +224,9 @@ class WP_REST_Server {
|
||||
*
|
||||
* @since 4.4.0
|
||||
*
|
||||
* @param string $code WP_Error-style code.
|
||||
* @param string $message Human-readable message.
|
||||
* @param int $status Optional. HTTP status code to send. Default null.
|
||||
* @param string $code WP_Error-style code.
|
||||
* @param string $message Human-readable message.
|
||||
* @param int|null $status Optional. HTTP status code to send. Default null.
|
||||
* @return string JSON representation of the error
|
||||
*/
|
||||
protected function json_error( $code, $message, $status = null ) {
|
||||
@@ -278,8 +278,8 @@ class WP_REST_Server {
|
||||
*
|
||||
* @global WP_User $current_user The currently authenticated user.
|
||||
*
|
||||
* @param string $path Optional. The request route. If not set, `$_SERVER['PATH_INFO']` will be used.
|
||||
* Default null.
|
||||
* @param string|null $path Optional. The request route. If not set, `$_SERVER['PATH_INFO']` will be used.
|
||||
* Default null.
|
||||
* @return null|false Null if not served and a HEAD request, false otherwise.
|
||||
*/
|
||||
public function serve_request( $path = null ) {
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.9-beta2-61112';
|
||||
$wp_version = '6.9-beta2-61113';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
||||
Reference in New Issue
Block a user