Make WordPress Core

Changeset 62477


Ignore:
Timestamp:
06/09/2026 03:52:45 AM (3 months ago)
Author:
westonruter
Message:

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 https://github.com/WordPress/wordpress-develop/pull/12071.
Follow-up to r46685.

Props ekamran, yusufmudagal, dhruvang21, codesmith32.
Fixes #65401.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-screen.php

    r62400 r62477  
    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.
     
    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.
     
    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.
Note: See TracChangeset for help on using the changeset viewer.