Skip to:
Content

bbPress.org

Changeset 4249


Ignore:
Timestamp:
10/13/2012 07:28:20 AM (12 years ago)
Author:
johnjamesjacoby
Message:

Code Improvement:

  • Move bbp-includes files into respective subdirectories.
  • Adjust include paths.
  • Remove superfluous inline file descriptions.
  • See: #1975.
Location:
trunk
Files:
7 added
1 edited
31 moved

Legend:

Unmodified
Added
Removed
  • trunk/bbp-includes/core/actions.php

    r4248 r4249  
    282282
    283283    // Include the BuddyPress Component
    284     require( bbpress()->plugin_dir . 'bbp-includes/bbp-extend-buddypress.php' );
     284    require( bbpress()->includes_dir . 'extend/buddypress.php' );
    285285
    286286    // Instantiate BuddyPress for bbPress
  • trunk/bbpress.php

    r4248 r4249  
    266266        /** Core **************************************************************/
    267267
    268         require( $this->plugin_dir . 'bbp-includes/bbp-core-dependency.php' ); // Core dependencies
    269         require( $this->plugin_dir . 'bbp-includes/bbp-core-functions.php'  ); // Core functions
    270         require( $this->plugin_dir . 'bbp-includes/bbp-core-cache.php'      ); // Cache helpers
    271         require( $this->plugin_dir . 'bbp-includes/bbp-core-options.php'    ); // Configuration options
    272         require( $this->plugin_dir . 'bbp-includes/bbp-core-caps.php'       ); // Roles and capabilities
    273         require( $this->plugin_dir . 'bbp-includes/bbp-core-classes.php'    ); // Common classes
    274         require( $this->plugin_dir . 'bbp-includes/bbp-core-widgets.php'    ); // Sidebar widgets
    275         require( $this->plugin_dir . 'bbp-includes/bbp-core-shortcodes.php' ); // Shortcodes for use with pages and posts
    276         require( $this->plugin_dir . 'bbp-includes/bbp-core-update.php'     ); // Database updater
    277 
    278         /** Templates *********************************************************/
    279 
    280         require( $this->plugin_dir . 'bbp-includes/bbp-template-functions.php'  ); // Template functions
    281         require( $this->plugin_dir . 'bbp-includes/bbp-template-loader.php'     ); // Template loader
    282         require( $this->plugin_dir . 'bbp-includes/bbp-theme-compatibility.php' ); // Theme compatibility for existing themes
     268        require( $this->includes_dir . 'core/sub-actions.php'        );
     269        require( $this->includes_dir . 'core/functions.php'          );
     270        require( $this->includes_dir . 'core/cache.php'              );
     271        require( $this->includes_dir . 'core/options.php'            );
     272        require( $this->includes_dir . 'core/capabilities.php'       );
     273        require( $this->includes_dir . 'core/classes.php'            );
     274        require( $this->includes_dir . 'core/widgets.php'            );
     275        require( $this->includes_dir . 'core/shortcodes.php'         );
     276        require( $this->includes_dir . 'core/update.php'             );
     277        require( $this->includes_dir . 'core/template-functions.php' );
     278        require( $this->includes_dir . 'core/template-loader.php'    );
     279        require( $this->includes_dir . 'core/theme-compat.php'       );
     280
     281        /** Components ********************************************************/
     282
     283        // Common
     284        require( $this->includes_dir . 'common/functions.php'      );
     285        require( $this->includes_dir . 'common/template-tags.php'  );
     286
     287        // Forums
     288        require( $this->includes_dir . 'forums/capabilities.php'   );
     289        require( $this->includes_dir . 'forums/functions.php'      );
     290        require( $this->includes_dir . 'forums/template-tags.php'  );
     291
     292        // Topics
     293        require( $this->includes_dir . 'topics/capabilities.php'   );
     294        require( $this->includes_dir . 'topics/functions.php'      );
     295        require( $this->includes_dir . 'topics/template-tags.php'  );
     296
     297        // Replies
     298        require( $this->includes_dir . 'replies/capabilities.php'  );
     299        require( $this->includes_dir . 'replies/functions.php'     );
     300        require( $this->includes_dir . 'replies/template-tags.php' );
     301
     302        // Users
     303        require( $this->includes_dir . 'users/capabilities.php'    );
     304        require( $this->includes_dir . 'users/functions.php'       );
     305        require( $this->includes_dir . 'users/template-tags.php'   );
     306        require( $this->includes_dir . 'users/options.php'         );
    283307
    284308        /** Extensions ********************************************************/
    285309
    286         require( $this->plugin_dir . 'bbp-includes/bbp-extend-akismet.php' ); // Spam prevention for topics and replies
    287 
    288         /**
    289          * BuddyPress extension is loaded in bbp-core-hooks.php
    290          *
    291          * @since bbPress (r3559)
    292          */
    293 
    294         /** Components ********************************************************/
    295 
    296         require( $this->plugin_dir . 'bbp-includes/bbp-common-functions.php' ); // Common functions
    297         require( $this->plugin_dir . 'bbp-includes/bbp-common-template.php'  ); // Common template tags
    298 
    299         require( $this->plugin_dir . 'bbp-includes/bbp-forum-caps.php'       ); // Forum capabilities
    300         require( $this->plugin_dir . 'bbp-includes/bbp-forum-functions.php'  ); // Forum functions
    301         require( $this->plugin_dir . 'bbp-includes/bbp-forum-template.php'   ); // Forum template tags
    302 
    303         require( $this->plugin_dir . 'bbp-includes/bbp-topic-caps.php'       ); // Topic capabilities
    304         require( $this->plugin_dir . 'bbp-includes/bbp-topic-functions.php'  ); // Topic functions
    305         require( $this->plugin_dir . 'bbp-includes/bbp-topic-template.php'   ); // Topic template tags
    306 
    307         require( $this->plugin_dir . 'bbp-includes/bbp-reply-caps.php'       ); // Reply capabilities
    308         require( $this->plugin_dir . 'bbp-includes/bbp-reply-functions.php'  ); // Reply functions
    309         require( $this->plugin_dir . 'bbp-includes/bbp-reply-template.php'   ); // Reply template tags
    310 
    311         require( $this->plugin_dir . 'bbp-includes/bbp-user-caps.php'        ); // User capabilities
    312         require( $this->plugin_dir . 'bbp-includes/bbp-user-functions.php'   ); // User functions
    313         require( $this->plugin_dir . 'bbp-includes/bbp-user-template.php'    ); // User template tags
    314         require( $this->plugin_dir . 'bbp-includes/bbp-user-options.php'     ); // User options
     310        require( $this->includes_dir . 'extend/akismet.php' );
    315311
    316312        /** Hooks *************************************************************/
    317313
    318         require( $this->plugin_dir . 'bbp-includes/bbp-core-actions.php'    ); // All actions
    319         require( $this->plugin_dir . 'bbp-includes/bbp-core-filters.php'    ); // All filters
     314        require( $this->includes_dir . 'core/actions.php' );
     315        require( $this->includes_dir . 'core/filters.php' );
    320316
    321317        /** Admin *************************************************************/
Note: See TracChangeset for help on using the changeset viewer.