Skip to content

Commit 2704a1c

Browse files
committed
Docs: Fix broken replacement links in contextual help filter docs.
The `@deprecated` tags for the legacy `contextual_help_list`, `contextual_help`, and `default_contextual_help` filters pointed to `{@see get_current_screen()->add_help_tab()}` and `{@see get_current_screen()->remove_help_tab()}`. These method-call chains are not resolvable references, so they rendered as broken links on the Developer Reference site (and in IDEs such as PhpStorm). Replace them with references that resolve: `get_current_screen()`, `WP_Screen::add_help_tab()`, and `WP_Screen::remove_help_tab()`. Developed in #12071. Follow-up to r46685. Props ekamran, yusufmudagal, dhruvang21, codesmith32. Fixes #65401. git-svn-id: https://develop.svn.wordpress.org/trunk@62477 602fd350-edb4-49c9-b593-d223f7449a82
1 parent eb1dff0 commit 2704a1c

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

‎src/wp-admin/includes/class-wp-screen.php‎

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -792,8 +792,9 @@ public function render_screen_meta() {
792792
* Filters the legacy contextual help list.
793793
*
794794
* @since 2.7.0
795-
* @deprecated 3.3.0 Use {@see get_current_screen()->add_help_tab()} or
796-
* {@see get_current_screen()->remove_help_tab()} instead.
795+
* @deprecated 3.3.0 Use {@see get_current_screen()} with
796+
* {@see WP_Screen::add_help_tab()} or
797+
* {@see WP_Screen::remove_help_tab()} instead.
797798
*
798799
* @param array $old_compat_help Old contextual help.
799800
* @param WP_Screen $screen Current WP_Screen instance.
@@ -811,8 +812,9 @@ public function render_screen_meta() {
811812
* Filters the legacy contextual help text.
812813
*
813814
* @since 2.7.0
814-
* @deprecated 3.3.0 Use {@see get_current_screen()->add_help_tab()} or
815-
* {@see get_current_screen()->remove_help_tab()} instead.
815+
* @deprecated 3.3.0 Use {@see get_current_screen()} with
816+
* {@see WP_Screen::add_help_tab()} or
817+
* {@see WP_Screen::remove_help_tab()} instead.
816818
*
817819
* @param string $old_help Help text that appears on the screen.
818820
* @param string $screen_id Screen ID.
@@ -832,8 +834,9 @@ public function render_screen_meta() {
832834
* Filters the default legacy contextual help text.
833835
*
834836
* @since 2.8.0
835-
* @deprecated 3.3.0 Use {@see get_current_screen()->add_help_tab()} or
836-
* {@see get_current_screen()->remove_help_tab()} instead.
837+
* @deprecated 3.3.0 Use {@see get_current_screen()} with
838+
* {@see WP_Screen::add_help_tab()} or
839+
* {@see WP_Screen::remove_help_tab()} instead.
837840
*
838841
* @param string $old_help_default Default contextual help text.
839842
*/

0 commit comments

Comments
 (0)