Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/20/2011 10:53:49 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Second pass at huge component refactor.

Move component files out of root directory and append '-loader' to the file names. Split those files up into smaller pieces.

Abstract 'settings' component out of 'core' and into its own component for future extension, including new template files in bp-default.

Append '-sa' to bbPress bridge file for 'Stand Alone' compatibility, to make room for bbPress plugin compatibility layer.

Various bug fixes through-out all components. Various code clean-up and documentation through-out all components.

Still more refactoring to do.

File:
1 moved

Legend:

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

    r3750 r3757  
    166166    } else {
    167167        if ( 'inbox' == $bp->current_action )
    168             bp_core_delete_notifications_for_user_by_type( $bp->loggedin_user->id, $bp->messages->id, 'new_message' );
     168            bp_users_delete_notifications_by_type( $bp->loggedin_user->id, $bp->messages->id, 'new_message' );
    169169
    170170        if ( 'sentbox' == $bp->current_action )
     
    343343        global $bp;
    344344
    345         return apply_filters( 'bp_get_messages_form_action', trailingslashit( $bp->loggedin_user->domain . $bp->messages->slug . '/' . $bp->current_action . '/' . $bp->action_variables[0] . '/' ) );
     345        if ( isset( $bp->action_variables[0] ) )
     346            $av = $bp->action_variables[0];
     347        else
     348            $av = '';
     349
     350        return apply_filters( 'bp_get_messages_form_action', trailingslashit( $bp->loggedin_user->domain . $bp->messages->slug . '/' . $bp->current_action . '/' . $av . '/' ) );
    346351    }
    347352
     
    734739        global $thread_template, $bp;
    735740
    736         if ( count($thread_template->thread->recipients) >= 5 )
     741        $recipient_links = array();
     742
     743        if ( count( $thread_template->thread->recipients ) >= 5 )
    737744            return apply_filters( 'bp_get_the_thread_recipients', sprintf( __( '%d Recipients', 'buddypress' ), count($thread_template->thread->recipients) ) );
    738745
Note: See TracChangeset for help on using the changeset viewer.