Ticket #7151: 7151.01.patch
File 7151.01.patch, 2.0 KB (added by , 8 years ago) |
---|
-
src/bp-core/bp-core-actions.php
57 57 add_action( 'bp_loaded', 'bp_include', 4 ); 58 58 add_action( 'bp_loaded', 'bp_setup_cache_groups', 5 ); 59 59 add_action( 'bp_loaded', 'bp_setup_widgets', 6 ); 60 add_action( 'bp_loaded', 'bp_register_member_types', 8 );61 60 add_action( 'bp_loaded', 'bp_register_theme_packages', 12 ); 62 61 add_action( 'bp_loaded', 'bp_register_theme_directory', 14 ); 63 62 … … 68 67 * The load order helps to execute code at the correct time. 69 68 * v---Load order 70 69 */ 70 add_action( 'bp_init', 'bp_register_post_types', 2 ); 71 add_action( 'bp_init', 'bp_register_taxonomies', 2 ); 71 72 add_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 );74 73 add_action( 'bp_init', 'bp_setup_globals', 4 ); 75 74 add_action( 'bp_init', 'bp_setup_canonical_stack', 5 ); 76 75 add_action( 'bp_init', 'bp_setup_nav', 6 ); … … 81 80 add_action( 'bp_init', 'bp_add_permastructs', 40 ); 82 81 83 82 /** 83 * The bp_register_taxonomies hook - Attached to 'bp_init' @ priority 2 above. 84 */ 85 add_action( 'bp_register_taxonomies', 'bp_register_member_types' ); 86 87 /** 84 88 * The bp_template_redirect hook - Attached to 'template_redirect' above. 85 89 * 86 90 * Attach various template actions to the bp_template_redirect action. -
src/bp-groups/bp-groups-actions.php
27 27 */ 28 28 do_action( 'bp_groups_register_group_types' ); 29 29 } 30 add_action( 'bp_ init', 'bp_groups_register_group_types', 1);30 add_action( 'bp_register_taxonomies', 'bp_groups_register_group_types' ); 31 31 32 32 /** 33 33 * Protect access to single groups.