Possible bug: ajaxurl for Favourites/Subscribes
This is with bbPress theme files in a custom theme and refers to the functions.php file supplied with the plugin in the sample theme.
From poking around it looks like the head_scripts() function (in functions.php) is hooked into bbp_head, which is in turn hooked into wp_head without a priority.
This means it gets added with a priority 10 whereas wp_lists.js gets called with wp_print_head_scripts which has a priority 9 causing var ajaxurl to be defined too late. (As it’s required by wp-lists.php).
If anyone else finds their ajax doesn’t work on topic pages you can get round this by changing in functions.php:
add_action( ‘bbp_head’, array( $this, ‘head_scripts’ ));
add_action( ‘wp_head’, array( $this, ‘head_scripts’ ), 8 );
This might not be the case with all themes and only applies if you use functions.php from the bbPress plugin in your theme but thought it was worth mentioning.
@jjj: The plugin is Frickin awesome! Good job sir.
- You must be logged in to reply to this topic.