Skip to:
Content

BuddyPress.org

Ticket #1174: patch.diff

File patch.diff, 580 bytes (added by petronic, 15 years ago)
  • bp-status.php

     
    109109 * true or false on success or failure.
    110110 */
    111111
    112 function bp_status_add_status( $user_id, $content ) {
     112function bp_status_add_status( $user_id, $content, $recorded_time=false ) {
    113113        global $bp;
    114114       
    115115        $content = apply_filters( 'bp_status_content_before_save', $content );
    116         $recorded_time = time();
    117        
     116        if ( !$recorded_time )
     117                $recorded_time = time();
     118               
    118119        if ( !$content || empty($content) )
    119120                return false;
    120121