Skip to:
Content

bbPress.org

Changeset 4324 for trunk/bbpress.php


Ignore:
Timestamp:
11/03/2012 09:20:34 PM (12 years ago)
Author:
johnjamesjacoby
Message:

Theme Compat:

  • Introduce bbp_get_template_stack() and bbp_register_template_stack().
  • Used to provide an accurate hierarchy to individual template locations.
  • Also enables an unlimited number of parent/child template relationships to be registered.
  • See #1968.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bbpress.php

    r4321 r4324  
    385385     */
    386386    public function register_theme_packages() {
     387
     388        // Register the default theme compatibility package
    387389        bbp_register_theme_package( array(
    388390            'id'      => 'default',
     
    392394            'url'     => trailingslashit( $this->themes_url . 'bbp-default' )
    393395        ) );
     396
     397        // Register the basic theme stack. This is really dope.
     398        bbp_register_template_stack( 'get_stylesheet_directory', 10 );
     399        bbp_register_template_stack( 'get_template_directory',   12 );
     400        bbp_register_template_stack( 'bbp_get_theme_compat_dir', 14 );
    394401    }
    395402
     
    803810
    804811    /**
    805      * Register the bbPress capabilities
    806      *
    807      * @since bbPress (r3031)
    808      *
    809      * @uses BBP_Capabilities
    810      */
    811     public function register_capabilities() {
    812         $this->capabilities = new BBP_Capabilities();
    813     }
    814 
    815     /**
    816812     * Setup the currently logged-in user
    817813     *
Note: See TracChangeset for help on using the changeset viewer.