stream icon indicating copy to clipboard operation
stream copied to clipboard

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

Open tleifj opened this issue 1 year ago • 0 comments

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

tleifj avatar May 14 '24 19:05 tleifj