[buddypress-trac] [BuddyPress Trac] #7096: Messages: member page messages are queried for the loggedin user
buddypress-trac
noreply at wordpress.org
Thu Jul 13 19:11:00 UTC 2017
#7096: Messages: member page messages are queried for the loggedin user
--------------------------+----------------------
Reporter: Offereins | Owner: dcavins
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 2.9
Component: Messages | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch |
--------------------------+----------------------
Comment (by boonebgorges):
In [changeset:"11644"]:
{{{
#!CommitTicketReference repository="" revision="11644"
Restore default behavior of message link generating functions.
Prior to [11578], functions for generating links in the context of
messages (Mark Read, Delete, etc) were generated relative to the
logged-in user. This made it impossible for an administrator to
manage another user's messages. [11578] changed the default behavior
of these functions to reference the displayed user. But this change
breaks backward compatibility for functions expecting the prior
behavior, including BP's own message notification format functions.
We work around the limitation by introducing `$user_id` parameters
to the functions in question. `$user_id` defaults to the logged-in
user (for backward compatibilty), and the bp-legacy template passes
in the displayed user ID as appropriate.
Fixes #7096.
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7096#comment:33>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list