Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/25/2011 08:58:56 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Rename new 'bp-users' component to 'bp-members' for consistency through-out project.
Core, Messages, and Friends Components now use the BP_Component class.
Split Friends and Messages components into smaller files.
Change references to 'profile' to 'xprofile' through-out project for consistency.
Introduce 'bp_actions' and 'bp_screens' standard hooks to replace the usage of 'wp' through-out project.
Move component loader sequence into bp-core-bootstrap.php,
Move old root_component action into 1.3 deprecated file.

File:
1 edited

Legend:

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

    r3777 r3917  
    55
    66    // Include the autocomplete JS for composing a message.
    7     if ( $bp->current_component == $bp->messages->slug && 'compose' == $bp->current_action ) {
     7    if ( bp_is_messages_component() && bp_is_current_action( 'compose' ) ) {
    88        add_action( 'wp_head', 'messages_autocomplete_init_jsblock' );
    99
     
    2222    }
    2323}
    24 add_action( 'wp', 'messages_add_autocomplete_js', 2 );
     24add_action( 'bp_actions', 'messages_add_autocomplete_js' );
    2525
    2626function messages_add_autocomplete_css() {
    2727    global $bp;
    2828
    29     if ( $bp->current_component == $bp->messages->slug && 'compose' == $bp->current_action ) {
     29    if ( bp_is_messages_component() && bp_is_current_item( 'compose' ) ) {
    3030        if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG )
    3131            wp_enqueue_style( 'bp-messages-autocomplete', BP_PLUGIN_URL . '/bp-messages/css/autocomplete/jquery.autocompletefb.dev.css', array(), BP_VERSION );
Note: See TracChangeset for help on using the changeset viewer.