Changeset 3026
- Timestamp:
- 04/24/2011 03:20:32 AM (15 years ago)
- File:
-
- 1 edited
-
branches/plugin/bbpress.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbpress.php
r3018 r3026 314 314 function _includes() { 315 315 316 /** Individual files **************************************************/ 317 $files = array( 'update', 'loader', 'options', 'caps', 'hooks', 'classes', 'widgets', 'shortcodes' ); 318 316 319 // Load the files 317 foreach ( array( 'update', 'loader', 'options', 'caps', 'hooks', 'classes', 'widgets' )as $file )320 foreach ( $files as $file ) 318 321 require_once( $this->plugin_dir . '/bbp-includes/bbp-' . $file . '.php' ); 319 322 323 /** Components ********************************************************/ 324 $components = array( 'general', 'forum', 'topic', 'reply', 'user' ); 325 320 326 // Load the function and template files 321 foreach ( array( 'general', 'forum', 'topic', 'reply', 'user' )as $file ) {327 foreach ( $components as $file ) { 322 328 require_once( $this->plugin_dir . '/bbp-includes/bbp-' . $file . '-functions.php' ); 323 329 require_once( $this->plugin_dir . '/bbp-includes/bbp-' . $file . '-template.php' ); 324 330 } 331 332 /** Admin *************************************************************/ 325 333 326 334 // Quick admin check and load if needed
Note: See TracChangeset
for help on using the changeset viewer.