Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/10/2012 01:39:30 PM (12 years ago)
Author:
johnjamesjacoby
Message:

When in theme-compat, make sure 'bp_head' gets added to 'wp_head' action. Also introduce bp_head() function, and use in bp-default header.php. Fixes #4669.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-theme-compatibility.php

    r6536 r6605  
    476476
    477477        // Add a filter on the_content late, which we will later remove
    478         add_filter( 'the_content', 'bp_replace_the_content' );
     478        if ( ! has_filter( 'the_content', 'bp_replace_the_content' ) ) {
     479            add_filter( 'the_content', 'bp_replace_the_content' );
     480        }
     481
     482        // Add BuddyPress's head action to wp_head
     483        if ( ! has_action( 'wp_head', 'bp_head' ) ) {
     484            add_action( 'wp_head', 'bp_head' );
     485        }
    479486
    480487        // Find the appropriate template file
Note: See TracChangeset for help on using the changeset viewer.