Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/03/2012 12:33:13 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Theme Compatibility:

  • First pass at including theme compatibility into BuddyPress.
  • Introduce dependency, theme-compatibility, template-loader files into Core component.
  • Add theme compatibility classes for components with direct template access.
  • Move actions and filters around for improved plugin dependency.
  • Remove old $bbp references.
  • Turn $bp global into byref singleton, and include methods for setting up theme compatibility. (Fixes #4470.)
  • Add is_buddypress() function to bp-core-template.php.
  • Rename incorrectly named bp_after_theme_setup sub-action.
  • See: #3741.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-catchuri.php

    r6259 r6285  
    370370    }
    371371
    372     // Define local variables
    373     $located_template   = false;
     372    // Fetch each template and add the php suffix
    374373    $filtered_templates = array();
    375 
    376     // Fetch each template and add the php suffix
    377     foreach ( (array) $templates as $template )
     374    foreach ( (array) $templates as $template ) {
    378375        $filtered_templates[] = $template . '.php';
     376    }
    379377
    380378    // Filter the template locations so that plugins can alter where they are located
     
    392390
    393391        do_action( 'bp_core_post_load_template', $located_template );
    394     }
    395 
    396     // Kill any other output after this.
    397     die;
     392
     393        // Kill any other output after this.
     394        exit();
     395
     396    // No template found, so setup theme compatability
     397    // @todo Some other 404 handling if theme compat doesn't kick in
     398    } else {
     399        do_action( 'bp_setup_theme_compat' );
     400    }
    398401}
    399402
Note: See TracChangeset for help on using the changeset viewer.