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

Deprecations for init functions calling add_action or add_filter #661

Merged
merged 1 commit into from
Apr 2, 2019

Conversation

joshcanhelp
Copy link
Contributor

@joshcanhelp joshcanhelp commented Apr 1, 2019

Changes

Deprecates init() methods that call add_action or add_filter. These will be moved to global functions in the next major release to allow un-hooking when needed.

See "Files Changed" tab for methods.

$this->basename = plugin_basename( __FILE__ );

$ip_checker = new WP_Auth0_Ip_Check();
$ip_checker->init();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting was already removed so this call was doing noting.

@@ -119,10 +120,6 @@ public function init() {

add_filter( 'plugin_action_links_' . $this->basename, array( $this, 'wp_add_plugin_settings_link' ) );

if ( isset( $_GET['message'] ) ) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very old functionality, not used.

@joshcanhelp joshcanhelp added this to the 3.10.0 milestone Apr 1, 2019
@joshcanhelp joshcanhelp merged commit 924e6ed into master Apr 2, 2019
@joshcanhelp joshcanhelp deleted the deprecations-for-init-methods branch April 12, 2019 19:30
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants