Skip to:
Content

bbPress.org

Changeset 4918


Ignore:
Timestamp:
05/19/2013 05:01:10 AM (12 years ago)
Author:
johnjamesjacoby
Message:

Add sub-actions for rewrite rules and permastructs. See #2336.

Location:
trunk/includes/core
Files:
2 edited

Legend:

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

    r4826 r4918  
    7575 * Attach various initialization actions to the init action.
    7676 * The load order helps to execute code at the correct time.
    77  *                                              v---Load order
    78  */
    79 add_action( 'bbp_init', 'bbp_load_textdomain',  0   );
    80 add_action( 'bbp_init', 'bbp_register',         0   );
    81 add_action( 'bbp_init', 'bbp_add_rewrite_tags', 20  );
    82 add_action( 'bbp_init', 'bbp_ready',            999 );
     77 *                                               v---Load order
     78 */
     79add_action( 'bbp_init', 'bbp_load_textdomain',   0   );
     80add_action( 'bbp_init', 'bbp_register',          0   );
     81add_action( 'bbp_init', 'bbp_add_rewrite_tags',  20  );
     82add_action( 'bbp_init', 'bbp_add_rewrite_rules', 30  );
     83add_action( 'bbp_init', 'bbp_add_permastructs',  40  );
     84add_action( 'bbp_init', 'bbp_ready',             999 );
    8385
    8486/**
  • trunk/includes/core/sub-actions.php

    r4791 r4918  
    234234
    235235/**
     236 * Add the bbPress-specific rewrite rules
     237 *
     238 * @since bbPress (r4918)
     239 * @uses do_action() Calls 'bbp_add_rewrite_rules'
     240 */
     241function bbp_add_rewrite_rules() {
     242    do_action( 'bbp_add_rewrite_rules' );
     243}
     244
     245/**
     246 * Add the bbPress-specific permalink structures
     247 *
     248 * @since bbPress (r4918)
     249 * @uses do_action() Calls 'bbp_add_permastructs'
     250 */
     251function bbp_add_permastructs() {
     252    do_action( 'bbp_add_permastructs' );
     253}
     254
     255/**
    236256 * Add the bbPress-specific login forum action
    237257 *
     
    406426 *
    407427 * @since bbPress (r2688)
     428 * @deprecated since bbPress (rxxxx)
    408429 * @param WP_Rewrite $wp_rewrite
    409430 * @uses do_action() Calls 'bbp_generate_rewrite_rules' with {@link WP_Rewrite}
Note: See TracChangeset for help on using the changeset viewer.