Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/30/2012 11:49:37 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Messages:

  • Remove unused function, calling a function that was deleted years ago.
  • Remove references to $thread_id and $thread_ids globals.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-messages/bp-messages-actions.php

    r6545 r6546  
    1616
    1717function messages_action_conversation() {
    18     global $thread_id;
    1918
    2019    if ( !bp_is_messages_component() || !bp_is_current_action( 'view' ) )
     
    5049
    5150function messages_action_delete_message() {
    52     global $thread_id;
    5351
    5452    if ( !bp_is_messages_component() || bp_is_current_action( 'notices' ) || !bp_is_action_variable( 'delete', 0 ) )
     
    7573
    7674function messages_action_bulk_delete() {
    77     global $thread_ids;
    7875
    7976    if ( !bp_is_messages_component() || !bp_is_action_variable( 'bulk-delete', 0 ) )
     
    8582        bp_core_redirect( trailingslashit( bp_displayed_user_domain() . bp_get_messages_slug() . '/' . bp_current_action() ) );
    8683    } else {
    87         if ( !check_admin_referer( 'messages_delete_thread' ) )
     84        if ( !check_admin_referer( 'messages_delete_thread' ) ) {
    8885            return false;
     86        }
    8987
    90         if ( !messages_delete_thread( $thread_ids ) )
     88        if ( !messages_delete_thread( $thread_ids ) ) {
    9189            bp_core_add_message( __('There was an error deleting messages.', 'buddypress'), 'error' );
    92         else
     90        } else {
    9391            bp_core_add_message( __('Messages deleted.', 'buddypress') );
     92        }
    9493
    9594        bp_core_redirect( trailingslashit( bp_displayed_user_domain() . bp_get_messages_slug() . '/' . bp_current_action() ) );
Note: See TracChangeset for help on using the changeset viewer.