Skip to content
This repository has been archived by the owner on May 6, 2021. It is now read-only.

deprecated filter hook message #91

Open
TheHeat opened this issue May 6, 2020 · 6 comments
Open

deprecated filter hook message #91

TheHeat opened this issue May 6, 2020 · 6 comments

Comments

@TheHeat
Copy link

TheHeat commented May 6, 2020

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.

@lkraav
Copy link

lkraav commented May 6, 2020

Relatively easily fixed. Y'all can take a page out of awesomemotive/wp-mail-logging#116 playbook.

@mitchelldmiller
Copy link

awesomemotive/wp-mail-logging#116

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

@lkraav
Copy link

lkraav commented May 13, 2020

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.

@RobertoDonPedro
Copy link

@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.

@lkraav
Copy link

lkraav commented Jul 3, 2020

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.

@RobertoDonPedro
Copy link

@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 :).

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

No branches or pull requests

4 participants