Skip to:
Content

bbPress.org

Changeset 4248 for trunk/bbpress.php


Ignore:
Timestamp:
10/13/2012 06:58:34 AM (12 years ago)
Author:
johnjamesjacoby
Message:

Code Improvement:

  • Move bbp-admin into bbp-includes/admin.
  • Introduce includes_dir and includes_url bbpress() vars.
  • Adjust BBP_Admin include paths.
  • See: #1975.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bbpress.php

    r4244 r4248  
    192192        $this->lang_dir   = apply_filters( 'bbp_lang_dir', trailingslashit( $this->plugin_dir . 'bbp-languages' ) );
    193193
     194        // Includes
     195        $this->includes_dir = apply_filters( 'bbp_includes_dir', trailingslashit( $this->plugin_dir . 'bbp-includes' ) );
     196        $this->includes_url = apply_filters( 'bbp_includes_url', trailingslashit( $this->plugin_url . 'bbp-includes' ) );
     197       
    194198        /** Identifiers *******************************************************/
    195199
     
    319323        // Quick admin check and load if needed
    320324        if ( is_admin() ) {
    321             require( $this->plugin_dir . 'bbp-admin/bbp-admin.php'   );
    322             require( $this->plugin_dir . 'bbp-admin/bbp-actions.php' );
     325            require( $this->includes_dir . 'admin/bbp-admin.php'   );
     326            require( $this->includes_dir . 'admin/bbp-actions.php' );
    323327        }
    324328    }
Note: See TracChangeset for help on using the changeset viewer.