[buddypress-trac] [BuddyPress Trac] #6939: autocomplete missing css

buddypress-trac noreply at wordpress.org
Thu Mar 3 20:03:07 UTC 2016


#6939: autocomplete missing css
-----------------------------------+--------------------------
 Reporter:  modemlooper            |      Owner:
     Type:  defect (bug)           |     Status:  new
 Priority:  high                   |  Milestone:  2.5
Component:  Component - Messaging  |    Version:  2.5.0
 Severity:  major                  |   Keywords:  dev-feedback
-----------------------------------+--------------------------
 The autocomplete function to add css is bad.

 There is a missing e in {$url}autocomplete/jquery.autocompletfb{$min}.css
 and it doesn't load.

 Why is this using wp_head?

 Could only get it to work by changing to this:


 {{{
 function messages_add_autocomplete_css() {
         if ( bp_is_messages_component() && bp_is_current_action( 'compose'
 ) ) {
                 $min = bp_core_get_minified_asset_suffix();
                 $url = buddypress()->plugin_url . 'bp-messages/css/';
                 wp_register_style( 'bp-messages-autocomplete',
 "{$url}autocomplete/jquery.autocompletefb{$min}.css", array(),
 bp_get_version() );
                 wp_enqueue_style( 'bp-messages-autocomplete' );
                 wp_style_add_data( 'bp-messages-autocomplete', 'rtl', true
 );
                 if ( $min ) {
                         wp_style_add_data( 'bp-messages-autocomplete',
 'suffix', $min );
                 }
                 wp_print_styles();
         }
 }
 add_action( 'wp_enqueue_scripts', 'messages_add_autocomplete_css' );
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6939>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list