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

Create WP_Slack_Plugin after all plugins have loaded #39

Merged
merged 1 commit into from
Jan 5, 2017

Conversation

rolfkleef
Copy link
Contributor

The WP_Slack_Plugin was created when the plugin loaded.

Additional plugins that add themselves to the slack_get_events filter may not have been loaded yet at that point.

So the plugin creates a new WP_Slack_Event_Manager object that runs get_events() before those "late" plugins have had a chance to hook into the event.

Fixes #38

The WP_Slack_Plugin was created when the plugin loaded.

Additional plugins that add themselves to the `slack_get_events` filter may not have been loaded yet at that point.

So the plugin creates a new `WP_Slack_Event_Manager` object that runs `get_events()` before those "late" plugins have had a chance to hook into the event.
Copy link
Owner

@gedex gedex left a comment

Choose a reason for hiding this comment

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

LGTM.

@gedex
Copy link
Owner

gedex commented Jan 5, 2017

Thanks for the PR @rolfkleef

@gedex gedex merged commit 525dd9f into gedex:master Jan 5, 2017
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.

2 participants