[buddypress-trac] [BuddyPress Trac] #6321: Messages: AJAX replies should use the message loop
buddypress-trac
noreply at wordpress.org
Thu Mar 26 00:38:32 UTC 2015
#6321: Messages: AJAX replies should use the message loop
-----------------------------------+-----------------------
Reporter: r-a-y | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.3
Component: Component - Messaging | Version: 1.2
Severity: normal | Keywords: has-patch
-----------------------------------+-----------------------
When making a reply to a private message thread, our AJAX message output
should use the message loop and all related message template functions.
Currently during AJAX, we do a workaround fix for zebra-striping (see
r6548) and we do not use native template functions such as
`bp_the_thread_message_css_class()` (see r8604) or
`bp_the_thread_message_content()` (see r2191).
This is because we're not using the message loop correctly when rendering
the AJAX content.
Attached patch emulates the message loop to ensure that the current
message in the loop is correctly set. This allows us to use our message
template functions without resorting to workarounds.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6321>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list