Changeset 11612
- Timestamp:
- 06/23/2017 05:34:06 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-messages/bp-messages-template.php
r11598 r11612 2012 2012 global $thread_template; 2013 2013 2014 $content = $thread_template->message->message; 2015 2016 // If user was deleted, mark content as deleted. 2017 if ( false === bp_core_get_core_userdata( bp_get_the_thread_message_sender_id() ) ) { 2018 $content = esc_html__( '[deleted]', 'buddypress' ); 2019 } 2020 2014 2021 /** 2015 2022 * Filters the content of the current message in the loop. … … 2019 2026 * @param string $message The content of the current message in the loop. 2020 2027 */ 2021 return apply_filters( 'bp_get_the_thread_message_content', $ thread_template->message->message);2028 return apply_filters( 'bp_get_the_thread_message_content', $content ); 2022 2029 } 2023 2030
Note: See TracChangeset
for help on using the changeset viewer.