Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/12/2011 02:33:04 PM (13 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-hooks.php

    r5309 r5524  
    195195}
    196196
     197/** Admin *********************************************************************/
     198
     199if ( is_admin() ) {
     200
     201    /** Actions ***************************************************************/
     202
     203    add_action( 'bp_loaded',         'bp_admin'                   );
     204    //add_action( 'bp_admin_init',     'bp_admin_settings_help'     );
     205    //add_action( 'admin_menu',        'bp_admin_separator'         );
     206    //add_action( 'custom_menu_order', 'bp_admin_custom_menu_order' );
     207    //add_action( 'menu_order',        'bp_admin_menu_order'        );
     208
     209    /**
     210     * Run the updater late on 'bp_admin_init' to ensure that all alterations
     211     * to the permalink structure have taken place. This fixes the issue of
     212     * permalinks not being flushed properly when a bbPress update occurs.
     213     */
     214    //add_action( 'bp_admin_init',    'bp_setup_updater', 999 );
     215
     216    /** Filters ***************************************************************/
     217}
     218
    197219?>
Note: See TracChangeset for help on using the changeset viewer.