Changeset 8692
- Timestamp:
- 07/25/2014 11:38:08 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-messages/bp-messages-template.php
r8674 r8692 1701 1701 */ 1702 1702 function bp_get_the_thread_message_time_since() { 1703 return apply_filters( 'bp_get_the_thread_message_time_since', sprintf( __( 'Sent %s', 'buddypress' ), bp_core_time_since( bp_get_the_thread_message_date_sent() ) ) ); 1704 } 1705 1706 /** 1707 * Output the timestamp for the current message. 1708 * 1709 * @since BuddyPress (2.1.0) 1710 */ 1711 function bp_the_thread_message_date_sent() { 1712 echo bp_get_the_thread_message_date_sent(); 1713 } 1714 /** 1715 * Generate the 'Sent x hours ago' string for the current message. 1716 * 1717 * @since BuddyPress (2.1.0) 1718 * 1719 * @uses strtotime() To convert the message string into a usable timestamp 1720 * @return int 1721 */ 1722 function bp_get_the_thread_message_date_sent() { 1703 1723 global $thread_template; 1704 1724 1705 return apply_filters( 'bp_get_the_thread_message_ time_since', sprintf( __( 'Sent %s', 'buddypress' ), bp_core_time_since( strtotime( $thread_template->message->date_sent ) )) );1725 return apply_filters( 'bp_get_the_thread_message_date_sent', strtotime( $thread_template->message->date_sent ) ); 1706 1726 } 1707 1727
Note: See TracChangeset
for help on using the changeset viewer.