From f42022287a630f0b27862b461041534876256141 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Tue, 12 Nov 2019 22:40:29 +0000 Subject: [PATCH] Docs: Correct some invalid hook docblocks. See #48303 git-svn-id: https://develop.svn.wordpress.org/trunk@46729 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-text-diff-renderer-table.php | 6 +++--- src/wp-includes/rest-api/class-wp-rest-server.php | 4 ++-- .../endpoints/class-wp-rest-revisions-controller.php | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/wp-includes/class-wp-text-diff-renderer-table.php b/src/wp-includes/class-wp-text-diff-renderer-table.php index e2da03f4ed..5155e2b802 100644 --- a/src/wp-includes/class-wp-text-diff-renderer-table.php +++ b/src/wp-includes/class-wp-text-diff-renderer-table.php @@ -168,9 +168,9 @@ class WP_Text_Diff_Renderer_Table extends Text_Diff_Renderer { * * @since 4.1.0 * - * @param String $processed_line The processed diffed line. - * @param String $line The unprocessed diffed line. - * @param string null The line context. Values are 'added', 'deleted' or 'unchanged'. + * @param string $processed_line The processed diffed line. + * @param string $line The unprocessed diffed line. + * @param string $context The line context. Values are 'added', 'deleted' or 'unchanged'. */ $line = apply_filters( 'process_text_diff_html', $processed_line, $line, 'added' ); } diff --git a/src/wp-includes/rest-api/class-wp-rest-server.php b/src/wp-includes/rest-api/class-wp-rest-server.php index 1caee5e793..e07e214d97 100644 --- a/src/wp-includes/rest-api/class-wp-rest-server.php +++ b/src/wp-includes/rest-api/class-wp-rest-server.php @@ -129,8 +129,8 @@ class WP_REST_Server { * * @since 4.4.0 * - * @param WP_Error|null|true WP_Error if authentication error, null if authentication - * method wasn't used, true if authentication succeeded. + * @param WP_Error|null|true $errors WP_Error if authentication error, null if authentication + * method wasn't used, true if authentication succeeded. */ return apply_filters( 'rest_authentication_errors', null ); } diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php index 9edf6eced6..cffeda5e9a 100644 --- a/src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php +++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php @@ -431,9 +431,9 @@ class WP_REST_Revisions_Controller extends WP_REST_Controller { * * @since 4.7.0 * - * @param (mixed) $result The revision object (if it was deleted or moved to the trash successfully) - * or false (failure). If the revision was moved to the trash, $result represents - * its new state; if it was deleted, $result represents its state before deletion. + * @param WP_Post|false|null $result The revision object (if it was deleted or moved to the trash successfully) + * or false or null (failure). If the revision was moved to the trash, $result represents + * its new state; if it was deleted, $result represents its state before deletion. * @param WP_REST_Request $request The request sent to the API. */ do_action( 'rest_delete_revision', $result, $request );