Skip to:
Content

bbPress.org

Changeset 3026


Ignore:
Timestamp:
04/24/2011 03:20:32 AM (15 years ago)
Author:
johnjamesjacoby
Message:

Clean up _includes() and add 'shortcodes' to the list of included files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbpress.php

    r3018 r3026  
    314314    function _includes() {
    315315
     316        /** Individual files **************************************************/
     317        $files = array( 'update', 'loader', 'options', 'caps', 'hooks', 'classes', 'widgets', 'shortcodes' );
     318
    316319        // Load the files
    317         foreach ( array( 'update', 'loader', 'options', 'caps', 'hooks', 'classes', 'widgets' ) as $file )
     320        foreach ( $files as $file )
    318321            require_once( $this->plugin_dir . '/bbp-includes/bbp-' . $file . '.php' );
    319322
     323        /** Components ********************************************************/
     324        $components = array( 'general', 'forum', 'topic', 'reply', 'user' );
     325
    320326        // Load the function and template files
    321         foreach ( array( 'general', 'forum', 'topic', 'reply', 'user' ) as $file ) {
     327        foreach ( $components as $file ) {
    322328            require_once( $this->plugin_dir . '/bbp-includes/bbp-' . $file . '-functions.php' );
    323329            require_once( $this->plugin_dir . '/bbp-includes/bbp-' . $file . '-template.php'  );
    324330        }
     331
     332        /** Admin *************************************************************/
    325333
    326334        // Quick admin check and load if needed
Note: See TracChangeset for help on using the changeset viewer.