Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/12/2011 02:33:04 PM (12 years ago)
Author:
johnjamesjacoby
Message:

First pass at using settings API:

  • Split bp-core-admin.php up into smaller parts
  • Use settings API for Settings screen
  • Backport bbPress 2.x admin class
  • Move admin functions out of core functions and cssjs files
  • Update bp-core-options.php and include
  • Rename menu pages to be more accurate
  • Rename 'Pages' tab to 'Permalinks' for future slugifying
  • See #3835
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-loader.php

    r5316 r5524  
    2424    function __construct() {
    2525        parent::start(
    26             '_core',
     26            'core',
    2727            __( 'BuddyPress Core', 'buddypress' )
    2828            , BP_PLUGIN_DIR
     
    119119        // Add Core to required components
    120120        $bp->required_components[] = 'core';
     121    }
     122
     123    function includes() {
     124
     125        if ( !is_admin() )
     126            return;
     127
     128        $includes = array(
     129            'admin'
     130        );
     131
     132        parent::includes( $includes );
    121133    }
    122134
Note: See TracChangeset for help on using the changeset viewer.