Skip to:
Content

BuddyPress.org

Changeset 6536


Ignore:
Timestamp:
11/27/2012 09:57:13 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Theme Compat:

  • Return $content if filter is used outside of the main loop.
File:
1 edited

Legend:

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

    r6504 r6536  
    496496function bp_replace_the_content( $content = '' ) {
    497497
     498    if ( ! in_the_loop() )
     499        return $content;
     500
    498501    $new_content = apply_filters( 'bp_replace_the_content', $content );
    499502
Note: See TracChangeset for help on using the changeset viewer.