Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: The 'contextual_help' hook is deprecated - use add_help_tab() instead #31

Open
wants to merge 1 commit into
base: v2.x
Choose a base branch
from

Conversation

kimhornung
Copy link

Steps to reproduce

  1. Add the following lines to wp-config.php to enable WP debug
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
  1. Go to any admin page

Result:
A warning message appears on the admin page.

Also, the following warning appears in the log file:

[08-Nov-2022 12:42:41 UTC] PHP Deprecated:  Hook contextual_help is <strong>deprecated</strong> since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead. in <webroot>/wp-includes/functions.php on line 5754

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant