stream
stream copied to clipboard
Email/Slack Alerts assume all alerts are for posts
Bug Report
Expected Behavior
Alerts should not assume record object_id is a post and should display alert actions based on the proper connector.
Actual Behavior
Alerts assume $recordarr['object_id'] is always a post and as a result offer a confusing message and "Edit %s" link, even if the object_id represents a user ID (or similar).
Steps to Reproduce the Problem
-
Create an Email or Slack alert on the
User->Profilesaction -
Edit a user's profile
-
View message sent
Sample message
If the user ID matched a post ID, you'll see a message like this:
A Stream Alert was triggered on [Site].
User:
Context: Profiles Action: Updated Page: [Some Unrelated Page]Edit Page <>
Edit Alert <[example.com]/wp-admin/edit.php?post_type=wp_stream_alerts#post-123456>
System Information
- Stream plugin version: 3.9.0
- WordPress version: 5.9.3