wordpress icon indicating copy to clipboard operation
wordpress copied to clipboard

deprecated filter hook message

Open TheHeat opened this issue 5 years ago • 6 comments

Hi, I'm getting an alert in the dashboard that I think originates from line 52 of lib/class-sendgrid-settings.php

// Add SendGrid Help contextual menu in the settings page add_filter( 'contextual_help', array( __CLASS__, 'show_contextual_help' ), 10, 3 );

The message is:

Deprecated: contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead. in /var/www/html/wp-includes/functions.php on line 5088

If I comment out line 52 it goes away.

TheHeat avatar May 06 '20 10:05 TheHeat

Relatively easily fixed. Y'all can take a page out of https://github.com/mailpoet/wp-mail-logging/pull/116 playbook.

lkraav avatar May 06 '20 17:05 lkraav

mailpoet/wp-mail-logging#116

Does that mean this plugin / respository is not supported and will never be updated?

mitchelldmiller avatar May 12 '20 18:05 mitchelldmiller

Does that mean this plugin / respository is not supported and will never be updated?

My comment was not meant to reflect on the development process of this plugin in any way.

That being said, last commit is from 2 years ago. Clearly not a high priority. There are other SMTP plugins, that are actively maintained and integrate SendGrid. I've already thought about migrating away from here but it's not a high priority for us either.

lkraav avatar May 13 '20 20:05 lkraav

@lkraav Well, the mailpoet code does not work 1:1 for the sendgrid plugin. If you have solved this issue for the sendgrid plugin, would it please be possible for to share it? Thx.

RobertoDonPedro avatar Jul 03 '20 10:07 RobertoDonPedro

Well, the mailpoet code does not work 1:1 for the sendgrid plugin. If you have solved this issue for the sendgrid plugin, would it please be possible for to share it? Thx.

Depends on what "does not work" means exactly.

Nothing bad really happens if you just comment out this add_filter() call, like pointed in the opening issue. I doubt any experienced user has a need for this help screen.

lkraav avatar Jul 03 '20 11:07 lkraav

@lkraav Yes, that's what I did yet, commenting out the the add_filter hook. And you are right, the help screen is not really needed, however, if someone would have fully fixed it yet, it wouldn't hurt either :).

RobertoDonPedro avatar Jul 03 '20 11:07 RobertoDonPedro