-
Notifications
You must be signed in to change notification settings - Fork 116
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
Fix: Remove old records #1076
Fix: Remove old records #1076
Conversation
Since this is a cron-job
if ( | ||
is_multisite() | ||
&& | ||
is_network_admin() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure why is_network_admin()
would need to be checked on cron runs.
$current_page = wp_stream_filter_input( INPUT_GET, 'action' ); | ||
} | ||
|
||
if ( 'wp_stream_network_settings' === $current_page ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use the network settings if the plugin is network-activated. Is there a situation we would like to use network settings when the plugin is not network activated?
It has been a while since last looked into this and it would be great if we could fix the actual issue without changing so much of the surrounding code. I'm going to close this for now and we should create a new pull request just for the bugfix. |
Fixes #1056.
Checklist
contributing.md
).