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

Fix: Remove old records #1076

Closed
wants to merge 12 commits into from
Closed

Fix: Remove old records #1076

wants to merge 12 commits into from

Conversation

kasparsd
Copy link
Contributor

Fixes #1056.

  • Remove additional location checks to ensure cron tasks can execute.

Checklist

  • Project documentation has been updated to reflect the changes in this pull request, if applicable.
  • I have tested the changes in the local development environment (see contributing.md).
  • I have added phpunit tests.

if (
is_multisite()
&&
is_network_admin()
Copy link
Contributor Author

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 ) {
Copy link
Contributor Author

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?

@kopepasah kopepasah self-requested a review June 30, 2020 23:03
@kasparsd
Copy link
Contributor Author

kasparsd commented Jul 6, 2020

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.

@kasparsd kasparsd closed this Jul 6, 2020
@kasparsd kasparsd deleted the fix/1056-old-records-fresh branch May 11, 2021 11:15
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.

Old records are not being removed
1 participant