Skip to content

Remove_filter swallows next callback #55

@stephenharris

Description

@stephenharris

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions