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

Remove_filter swallows next callback #55

Closed
stephenharris opened this issue Mar 1, 2013 · 0 comments

Comments

Projects
None yet
1 participant
@stephenharris
Copy link
Owner

commented Mar 1, 2013

Although this was initially reported as conflict between Event Organiser and WP-E-Commerce, it's in fact a bug with WordPress.

Essentially using remove_action()/remove_filter() in a hooked function to remove that function from the hook swallows all functions of the next priority.

The work-around is pretty naff, but it involves protecting the function from being swalloed by adding a dummy function on the previous priority. This function does nothing, but acts as a buffer.

This isn't a complete work-around (there isn't one) and the problem may reoccur with other plug-ins. But I've shifted the priority of the affected function here to 11 in the hope of avoiding similar problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.