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

Load plugin during init face to prevent race conditions #25

Closed
wants to merge 2 commits into from

Conversation

dryajov
Copy link

@dryajov dryajov commented Jun 7, 2016

I was getting an NPE due to a null $wp_rewrite registering a page type. I think it makes sense to delay plugin bootstrap/registration to the init face when WP is initialized.

Unless I'm missing something, there also seems to be a bug in the way the shortcode callback is being invoked, since all the parameters are being merged into an array. Commit c5ae587 addresses that.

@dryajov dryajov changed the title Load plugin doring init face to prevent race conditions Load plugin during init face to prevent race conditions Jun 19, 2016
@jeremyzahner
Copy link
Contributor

@dryajov could you pick up commit c5ae587 and put up a new pull request for that one?

@dryajov dryajov closed this Jun 25, 2016
@dryajov
Copy link
Author

dryajov commented Jun 25, 2016

@jeremyzahner I've opened two separate prs #27 and #28

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