Changeset 708997
- Timestamp:
- 05/07/2013 03:07:47 AM (13 years ago)
- File:
-
- 1 edited
-
buddypress-xml-rpc-receiver/trunk/bp-xmlrpc.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
buddypress-xml-rpc-receiver/trunk/bp-xmlrpc.php
r708979 r708997 280 280 281 281 if(isset($data['action'])) { 282 $thread_id = $this->escape( $data['thread_id'] );282 $thread_id = (int) $data['action_id']; 283 283 switch($data['action']) { 284 284 case 'delete': … … 286 286 break; 287 287 case 'reply': 288 $content = $this->escape( $data[' content'] );288 $content = $this->escape( $data['action_data'] ); 289 289 messages_new_message( array( 'thread_id' => $thread_id, 'content' => $content ) ); 290 290 break; … … 372 372 $user_id = $bp->loggedin_user->id; 373 373 374 375 374 $thread_id = $this->escape( $data['thread_id'] ); 376 375 $subject = $this->escape( $data['subject'] ); … … 383 382 384 383 if ( messages_new_message( array( 'thread_id' => $thread_id, 'recipients' => $recipients, 'subject' => $subject, 'content' => $content ) ) ) { 385 386 384 $output = array( 387 385 'confirmation' => true, … … 400 398 return $output; 401 399 } 402 403 404 400 405 401
Note: See TracChangeset
for help on using the changeset viewer.