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

Plugin Updates via WP Cron in Custom Plugin Not Logging Plugin Updates in Stream #1484

Open
tleifj opened this issue May 14, 2024 · 0 comments

Comments

@tleifj
Copy link

tleifj commented May 14, 2024

Bug Report

Expected Behavior

We have a custom plugin that checks for plugin updates daily and then updates those plugins via a custom WP cron event. The plugins are done via WP's Plugin_Upgrader->bulk_upgrade. In the Stream settings, we have "WP Cron Tracking" enabled. I would expect the plugin updating activity to be logged in Stream when it is performed via the WP Cron event.

Actual Behavior

The plugin(s) get updated but nothing gets logged in Stream. I'm curious if I'm misunderstanding what enabling WP Cron Tracking does or if what is happening is expected or a bug. If it is expected, what is the proper way to log plugin updates that are happening via a WP Cron event in a plugin?

System Information

  • Stream plugin version: 4.0.0
  • WordPress version: 6.5.3
  • PHP version: 8.1.23
  • Browser: Arc (Chromium)
  • Computer operating system: macOS Sonoma
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

No branches or pull requests

1 participant