Skip to:
Content

BuddyPress.org

Changeset 8559


Ignore:
Timestamp:
07/05/2014 12:24:20 PM (7 years ago)
Author:
djpaul
Message:

Messages: soft-deprecate existing autocomplete CSS/JS by moving assets into deprecated folder.

Functionality hasn't been changed, the scripts have just been moved. Eventually, these will be
replaced by a newer auto-suggest JS/UI, then these will be used just for backwards compatibility
with old themes.

See #3278 and #5735.

Location:
trunk/src
Files:
2 added
3 edited
3 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-cssjs.php

    r8453 r8559  
    3232        'bp-jquery-query'     => 'jquery-query',
    3333        'bp-jquery-cookie'    => 'jquery-cookie',
    34         'bp-jquery-scroll-to' => 'jquery-scroll-to',
    3534    ) );
    3635
  • trunk/src/bp-loader.php

    r8436 r8559  
    453453            require( $this->plugin_dir . 'bp-core/deprecated/1.7.php' );
    454454            require( $this->plugin_dir . 'bp-core/deprecated/2.0.php' );
     455            require( $this->plugin_dir . 'bp-core/deprecated/2.1.php' );
    455456        }
    456457    }
  • trunk/src/bp-messages/bp-messages-cssjs.php

    r8479 r8559  
    2020        add_action( 'wp_head', 'messages_autocomplete_init_jsblock' );
    2121
    22         $bp  = buddypress();
    23         $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
    24         wp_enqueue_script( 'bp-jquery-autocomplete',    $bp->plugin_url . "bp-messages/js/autocomplete/jquery.autocomplete{$min}.js",   array( 'jquery' ), bp_get_version() );
    25         wp_enqueue_script( 'bp-jquery-autocomplete-fb', $bp->plugin_url . "bp-messages/js/autocomplete/jquery.autocompletefb{$min}.js", array(),           bp_get_version() );
    26         wp_enqueue_script( 'bp-jquery-bgiframe',        $bp->plugin_url . "bp-messages/js/autocomplete/jquery.bgiframe{$min}.js",       array(),           bp_get_version() );
    27         wp_enqueue_script( 'bp-jquery-dimensions',      $bp->plugin_url . "bp-messages/js/autocomplete/jquery.dimensions{$min}.js",     array(),           bp_get_version() );
     22        wp_enqueue_script( 'bp-jquery-autocomplete' );
     23        wp_enqueue_script( 'bp-jquery-autocomplete-fb' );
     24        wp_enqueue_script( 'bp-jquery-bgiframe' );
     25        wp_enqueue_script( 'bp-jquery-dimensions' );
    2826    }
    2927}
     
    3634 */
    3735function messages_add_autocomplete_css() {
    38 
    3936    if ( bp_is_messages_component() && bp_is_current_action( 'compose' ) ) {
    40         $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
    41         wp_enqueue_style( 'bp-messages-autocomplete', buddypress()->plugin_url . "bp-messages/css/autocomplete/jquery.autocompletefb{$min}.css", array(), bp_get_version() );
    42 
     37        wp_enqueue_style( 'bp-messages-autocomplete' );
    4338        wp_print_styles();
    4439    }
Note: See TracChangeset for help on using the changeset viewer.