From d557380e42cf952cd3e5a6312c01d140593dffac Mon Sep 17 00:00:00 2001 From: David Baumwald Date: Fri, 23 Sep 2022 16:19:00 +0000 Subject: [PATCH] Docs: Correct `@see` reference to `deprecated_function_run` in the `_deprecated_function` docblock. In the docblock for `_deprecated_function`, there is a `@see` reference to the `deprecated_function_run` hook run inside `_deprecated_function`. However, the `@see` reference includes the word "hook" inside the quotes which is generating a bad link at https://developer.wordpress.org/reference/functions/_deprecated_function/. This change simply moves the word "hook" outside the `@see` reference to correct the link parsing on https://developer.wordpress.org. Props Camwynsp, kebbet, SergeyBiryukov, hilayt24. Fixes #56625. git-svn-id: https://develop.svn.wordpress.org/trunk@54292 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index 35c2b1bd21..fe378341aa 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -5332,7 +5332,7 @@ function absint( $maybeint ) { /** * Marks a function as deprecated and inform when it has been used. * - * There is a {@see 'hook deprecated_function_run'} that will be called that can be used + * There is a hook {@see 'deprecated_function_run'} that will be called that can be used * to get the backtrace up to what file and function called the deprecated * function. *