This function has been deprecated. BuddyPress 1.5.0 instead.

bp_dtheme_add_blog_comments_js()

In BuddyPress 1.2.x, this added the JavaScript needed for blog comment replies.

Description

As of 1.5.x, we recommend that you enqueue the comment-reply JavaScript in your theme’s header.php.

Source

File: bp-core/deprecated/buddypress/1.5.php

	function bp_dtheme_add_blog_comments_js() {
		_deprecated_function( __FUNCTION__, '1.5', "Enqueue the comment-reply script in your theme's header.php." );
		if ( is_singular() && bp_is_blog_page() && get_option( 'thread_comments' ) )
			wp_enqueue_script( 'comment-reply' );
	}

Changelog

Changelog
Version Description
BuddyPress 1.5.0 BuddyPress 1.5.0
BuddyPress 1.2.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.