Changeset 3529
- Timestamp:
- 12/12/2010 10:57:14 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-messages/bp-messages-templatetags.php
r3517 r3529 783 783 } 784 784 785 function bp_the_thread_delete_link() { 786 echo bp_get_the_thread_delete_link(); 787 } 788 function bp_get_the_thread_delete_link() { 789 global $bp; 790 791 return apply_filters( 'bp_get_message_thread_delete_link', wp_nonce_url( $bp->loggedin_user->domain . $bp->messages->slug . '/inbox/delete/' . bp_get_the_thread_id(), 'messages_delete_thread' ) ); 792 } 793 785 794 function bp_the_thread_message_time_since() { 786 795 echo bp_get_the_thread_message_time_since(); -
trunk/bp-themes/bp-default/members/single/messages/messages-loop.php
r3300 r3529 48 48 <td width="13%" class="thread-options"> 49 49 <input type="checkbox" name="message_ids[]" value="<?php bp_message_thread_id() ?>" /> 50 <a class="button confirm" href="<?php bp_message_thread_delete_link() ?>" title="<?php _e( "Delete Message", "buddypress" ); ?>"> x</a> 50 <a class="button confirm" href="<?php bp_message_thread_delete_link() ?>" title="<?php _e( "Delete Message", "buddypress" ); ?>"><?php _e( 'Delete', 'buddypress' ) ?></a> 51 51 </td> 52 52 </tr> -
trunk/bp-themes/bp-default/members/single/messages/single.php
r3460 r3529 11 11 <?php printf( __('Sent between %s and %s', 'buddypress'), bp_get_the_thread_recipients(), '<a href="' . bp_get_loggedin_user_link() . '" title="' . bp_get_loggedin_user_fullname() . '">' . bp_get_loggedin_user_fullname() . '</a>' ) ?> 12 12 </span> 13 <a class="button confirm" href="<?php bp_the_thread_delete_link() ?>" title="<?php _e( "Delete Message", "buddypress" ); ?>"><?php _e( 'Delete', 'buddypress' ) ?></a> 13 14 </p> 14 15
Note: See TracChangeset
for help on using the changeset viewer.