Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Comment Fields Disappeared


John James Jacoby
Keymaster

@johnjamesjacoby

This is the offending code from the RC1 functions.php…

/* Catch specific URLs */
function bp_show_home_blog() {
global $bp, $query_string;

if ( $bp->current_component == HOME_BLOG_SLUG ) {
$pos = strpos( $query_string, 'pagename=' . HOME_BLOG_SLUG );

if ( $pos !== false )
$query_string = preg_replace( '/pagename=' . HOME_BLOG_SLUG . '/', '', $query_string );

query_posts($query_string);

$single_check = strpos( $query_string, '&name=' );

if ( $single_check === false )
bp_core_load_template( 'index', true );
else
bp_core_load_template( 'single', true );
}
}
add_action( 'wp', 'bp_show_home_blog', 2 );

Try removing that and see if it comes back or what the effects are…

I was tackling this issue along with a few others at the time, and to be honest tracking down all of the quirks has me a bit lost and frazzled as to how exactly I fixed this one…

Skip to toolbar