stream
stream copied to clipboard
Plugin Updates via WP Cron in Custom Plugin Not Logging Plugin Updates in Stream
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