Skip to:
Content

bbPress.org


Ignore:
Timestamp:
02/26/2012 11:32:31 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Add bbp-actions.php to admin files to handle admin actions not in the BBP_Admin class.

  • Move admin actions out of bbp-core-actions.php
  • Include in bbPress class when needed
  • Add admin sub-actions for dependent plugins
  • Move Recount specific functions into bbp-tools.php
File:
1 edited

Legend:

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

    r3758 r3766  
    2424// Exit if accessed directly
    2525if ( !defined( 'ABSPATH' ) ) exit;
    26 
    27 /** ACTIONS *******************************************************************/
    2826
    2927/**
     
    325323add_action( 'wpmu_new_blog', 'bbp_new_site', 10, 6 );
    326324
    327 /** Admin *********************************************************************/
    328 
    329 if ( is_admin() ) {
    330 
    331         add_action( 'bbp_init',          'bbp_admin'                   );
    332         add_action( 'bbp_admin_init',    'bbp_admin_forums',         9 );
    333         add_action( 'bbp_admin_init',    'bbp_admin_topics',         9 );
    334         add_action( 'bbp_admin_init',    'bbp_admin_replies',        9 );
    335         add_action( 'admin_menu',        'bbp_admin_separator'         );
    336         add_action( 'custom_menu_order', 'bbp_admin_custom_menu_order' );
    337         add_action( 'menu_order',        'bbp_admin_menu_order'        );
    338 
    339         // Contextual Helpers
    340         add_action( 'load-settings_page_bbpress', 'bbp_admin_settings_help' );
    341 
    342         /**
    343          * Run the updater late on 'bbp_admin_init' to ensure that all alterations
    344          * to the permalink structure have taken place. This fixes the issue of
    345          * permalinks not being flushed properly when a bbPress update occurs.
    346          */
    347         add_action( 'bbp_admin_init',    'bbp_setup_updater', 999 );
    348 }
    349 
    350325/**
    351326 * Plugin Dependency
Note: See TracChangeset for help on using the changeset viewer.