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

Notification Rule meta data being saved to all post types #693

Closed
fjarrett opened this issue Jan 21, 2015 · 1 comment

Comments

Projects
None yet
1 participant
@fjarrett
Copy link
Contributor

commented Jan 21, 2015

A user reported in the plugin forum that they were seeing strange post meta appearing on their posts.

triggers: a:0:{}
groups: a:0:{}
alerts: a:0:{}

screen shot 2015-01-21 at 12 28 20 am

I believe this is being caused by the save_post action in WP_Stream_Notifications_Post_Type not properly limiting itself to only adding meta information to Notification Rule posts.

@fjarrett

This comment has been minimized.

Copy link
Contributor Author

commented Jan 21, 2015

Here is a gist that will remove the unwanted meta from all other post types: https://gist.github.com/fjarrett/be5423e0899895558d75

@fjarrett fjarrett removed their assignment Aug 24, 2015

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.