Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/02/2016 05:32:38 AM (9 years ago)
Author:
r-a-y
Message:

Core: Move 'bp_register_post_types' and 'bp_register_taxonomies' hooks before'bp_core_set_uri_globals'.

This commit does two things:

  • Sets the priority of the 'bp_register_post_types' and 'bp_register_taxonomies' to 2 and called just before the 'bp_core_set_uri_globals' hook.
  • Registers our member and group types on the more, appropriate 'bp_register_taxonomies' hook.

Fixes #7151.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-actions.php

    r10917 r10981  
    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/**
Note: See TracChangeset for help on using the changeset viewer.