Skip to:
Content

BuddyPress.org

Ticket #7151: 7151.01.patch

File 7151.01.patch, 2.0 KB (added by r-a-y, 8 years ago)
  • src/bp-core/bp-core-actions.php

     
    5757add_action( 'bp_loaded', 'bp_include',                  4  );
    5858add_action( 'bp_loaded', 'bp_setup_cache_groups',       5  );
    5959add_action( 'bp_loaded', 'bp_setup_widgets',            6  );
    60 add_action( 'bp_loaded', 'bp_register_member_types',    8  );
    6160add_action( 'bp_loaded', 'bp_register_theme_packages',  12 );
    6261add_action( 'bp_loaded', 'bp_register_theme_directory', 14 );
    6362
     
    6867 * The load order helps to execute code at the correct time.
    6968 *                                                   v---Load order
    7069 */
     70add_action( 'bp_init', 'bp_register_post_types',     2  );
     71add_action( 'bp_init', 'bp_register_taxonomies',     2  );
    7172add_action( 'bp_init', 'bp_core_set_uri_globals',    2  );
    72 add_action( 'bp_init', 'bp_register_post_types',     3  );
    73 add_action( 'bp_init', 'bp_register_taxonomies',     3  );
    7473add_action( 'bp_init', 'bp_setup_globals',           4  );
    7574add_action( 'bp_init', 'bp_setup_canonical_stack',   5  );
    7675add_action( 'bp_init', 'bp_setup_nav',               6  );
     
    8180add_action( 'bp_init', 'bp_add_permastructs',        40 );
    8281
    8382/**
     83 * The bp_register_taxonomies hook - Attached to 'bp_init' @ priority 2 above.
     84 */
     85add_action( 'bp_register_taxonomies', 'bp_register_member_types' );
     86
     87/**
    8488 * The bp_template_redirect hook - Attached to 'template_redirect' above.
    8589 *
    8690 * Attach various template actions to the bp_template_redirect action.
  • src/bp-groups/bp-groups-actions.php

     
    2727         */
    2828        do_action( 'bp_groups_register_group_types' );
    2929}
    30 add_action( 'bp_init', 'bp_groups_register_group_types', 1 );
     30add_action( 'bp_register_taxonomies', 'bp_groups_register_group_types' );
    3131
    3232/**
    3333 * Protect access to single groups.