xwp / stream

🗄️ Stream plugin for WordPress
https://wordpress.org/plugins/stream/
GNU General Public License v2.0
407 stars 116 forks source link

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

Open tleifj opened 4 months ago

tleifj commented 4 months ago

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