[buddypress-trac] [BuddyPress] #1628: bp_filter_request is not defined

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Mon Jan 18 22:49:04 UTC 2010

#1628: bp_filter_request is not defined
Reporter:  grosbouff  |       Owner:     
    Type:  defect     |      Status:  new
Priority:  major      |   Milestone:  1.2
Keywords:             |  
 When calling the js function bp_filter_request() in a plugin, it returns
 'bp_filter_request is not defined' :

 The (core) function bp_filter_request is called inside my custom ajax.js :

     jQuery(document).ready( function() {
     var j = jQuery;

     /*load initial content*/
     if ( j('div.classified3s').length ) {
     bp_filter_request( j.cookie('bp-classified3s-type'), j.cookie('bp-
 classified3s-filter'), 'classified3s', 'div.classified3s', j.cookie('bp-
 classified3s-page'), j.cookie('bp-classified3s-search-terms') );

 and the ajax.js file is loaded with this function :

     function classified3s_add_js() {
     global $bp;

     if (bp_is_user_classified3s()) {
     wp_enqueue_script( 'bp-classified3s-ajax',
 get_stylesheet_directory_uri() . '/classified3s/_inc/js/ajax.js', array
 ('dtheme-ajax-js') );
     add_action( 'wp_print_scripts', 'classified3s_add_js', 1 );

 So I guess it should be workins as the function bp_filter_request is
 inside the file enqueued as 'dtheme-ajax-js'.

 Any idea ?

Ticket URL: <http://trac.buddypress.org/ticket/1628>
BuddyPress <http://buddypress.org/>

More information about the buddypress-trac mailing list