Ticket #3625: 3625.02.patch
File 3625.02.patch, 8.2 KB (added by , 13 years ago) |
---|
-
bp-activity/bp-activity-actions.php
22 22 function bp_register_activity_actions() { 23 23 do_action( 'bp_register_activity_actions' ); 24 24 } 25 add_action( 'bp_init ', 'bp_register_activity_actions', 8 );25 add_action( 'bp_init_core', 'bp_register_activity_actions', 8 ); 26 26 27 27 /** 28 28 * Allow core components and dependent plugins to register activity actions -
bp-core/bp-core-adminbar.php
43 43 44 44 remove_action( 'admin_bar_menu', 'wp_admin_bar_updates_menu', 70 ); 45 45 } 46 add_action( 'bp_init ', 'bp_admin_bar_remove_wp_menus', 2 );46 add_action( 'bp_init_core', 'bp_admin_bar_remove_wp_menus', 2 ); 47 47 48 48 /** 49 49 * Add a menu for the root site of this BuddyPress network … … 247 247 248 248 wp_enqueue_style( 'bp-admin-bar-rtl', apply_filters( 'bp_core_admin_bar_rtl_css', $stylesheet ), array( 'bp-admin-bar' ), '20110723' ); 249 249 } 250 add_action( 'bp_init ', 'bp_core_load_admin_bar_css' );250 add_action( 'bp_init_core', 'bp_core_load_admin_bar_css' ); 251 251 ?> 252 No newline at end of file -
bp-core/bp-core-avatars.php
43 43 if ( !defined( 'BP_AVATAR_DEFAULT_THUMB' ) ) 44 44 define( 'BP_AVATAR_DEFAULT_THUMB', BP_PLUGIN_URL . '/bp-core/images/mystery-man-50.jpg' ); 45 45 } 46 add_action( 'bp_init ', 'bp_core_set_avatar_constants', 3 );46 add_action( 'bp_init_core', 'bp_core_set_avatar_constants', 3 ); 47 47 48 48 function bp_core_set_avatar_globals() { 49 49 global $bp; -
bp-core/bp-core-buddybar.php
623 623 624 624 wp_enqueue_style( 'bp-admin-bar-rtl', apply_filters( 'bp_core_buddybar_rtl_css', $stylesheet ), array( 'bp-admin-bar' ), '20110723' ); 625 625 } 626 add_action( 'bp_init ', 'bp_core_load_buddybar_css' );626 add_action( 'bp_init_core', 'bp_core_load_buddybar_css' ); 627 627 ?> 628 No newline at end of file -
bp-core/bp-core-functions.php
225 225 226 226 require ( BP_PLUGIN_DIR . '/bp-core/admin/bp-core-admin.php' ); 227 227 } 228 add_action( 'bp_init ', 'bp_core_admin_menu_init' );228 add_action( 'bp_init_core', 'bp_core_admin_menu_init' ); 229 229 230 230 /** 231 231 * Adds the "BuddyPress" admin submenu item to the Site Admin tab. … … 867 867 868 868 bp_core_redirect( apply_filters( 'bp_core_search_site', home_url( $slug . $query_string . urlencode( $search_terms ) ), $search_terms ) ); 869 869 } 870 add_action( 'bp_init ', 'bp_core_action_search_site', 7 );870 add_action( 'bp_init_core', 'bp_core_action_search_site', 7 ); 871 871 872 872 /** 873 873 * Prints the generation time in the footer of the site. … … 901 901 else 902 902 return false; 903 903 } 904 add_action ( 'bp_init ', 'bp_core_load_buddypress_textdomain', 2 );904 add_action ( 'bp_init_core', 'bp_core_load_buddypress_textdomain', 2 ); 905 905 906 906 function bp_core_add_ajax_hook() { 907 907 // Theme only, we already have the wp_ajax_ hook firing in wp-admin 908 908 if ( !defined( 'WP_ADMIN' ) && isset( $_REQUEST['action'] ) ) 909 909 do_action( 'wp_ajax_' . $_REQUEST['action'] ); 910 910 } 911 add_action( 'bp_init ', 'bp_core_add_ajax_hook' );911 add_action( 'bp_init_ajax', 'bp_core_add_ajax_hook' ); 912 912 913 913 /** 914 914 * Initializes {@link BP_Embed} after everything is loaded. … … 923 923 if ( empty( $bp->embed ) ) 924 924 $bp->embed = new BP_Embed(); 925 925 } 926 add_action( 'bp_init ', 'bp_embed_init', 9 );926 add_action( 'bp_init_core', 'bp_embed_init', 9 ); 927 927 928 928 /** 929 929 * When switching from single to multisite we need to copy blog options to -
bp-core/bp-core-hooks.php
4 4 5 5 /** Loaded ********************************************************************/ 6 6 7 add_action( 'plugins_loaded', 'bp_loaded', 10);7 add_action( 'plugins_loaded', 'bp_loaded', 8 ); 8 8 9 add_action( 'bp_loaded', 'bp_include', 2 9 add_action( 'bp_loaded', 'bp_include', 2 ); 10 10 11 add_action( 'wp', 'bp_actions', 3 11 add_action( 'wp', 'bp_actions', 3 ); 12 12 13 add_action( 'wp', 'bp_screens', 4 13 add_action( 'wp', 'bp_screens', 4 ); 14 14 15 15 /** Init **********************************************************************/ 16 16 17 17 // Attach bp_init to WordPress init 18 add_action( 'init', 'bp_init');18 add_action( 'init', 'bp_init' 8 ); 19 19 20 20 // Parse the URI and set globals 21 add_action( 'bp_init ', 'bp_core_set_uri_globals', 2 );21 add_action( 'bp_init_core', 'bp_core_set_uri_globals', 2 ); 22 22 23 23 // Setup component globals 24 add_action( 'bp_init ', 'bp_setup_globals', 4 );24 add_action( 'bp_init_core', 'bp_setup_globals', 4 ); 25 25 26 26 // Setup the navigation menu 27 add_action( 'bp_init ', 'bp_setup_nav', 7 );27 add_action( 'bp_init_core', 'bp_setup_nav', 7 ); 28 28 29 29 // Setup the navigation menu 30 add_action( 'admin_bar_menu', 'bp_setup_admin_bar');30 add_action( 'admin_bar_menu', 'bp_setup_admin_bar' ); 31 31 32 32 // Setup the title 33 add_action( 'bp_init ', 'bp_setup_title', 9 );33 add_action( 'bp_init_core', 'bp_setup_title', 9 ); 34 34 35 35 // Setup widgets 36 add_action( 'bp_loaded', 'bp_setup_widgets' );36 add_action( 'bp_loaded', 'bp_setup_widgets' ); 37 37 38 38 // Setup admin bar 39 add_action( 'bp_loaded', 'bp_core_load_admin_bar' );39 add_action( 'bp_loaded', 'bp_core_load_admin_bar' ); 40 40 41 41 /** The hooks *****************************************************************/ 42 42 … … 84 84 } 85 85 86 86 /** 87 * Init lialize code87 * Initialize code 88 88 */ 89 89 function bp_init() { 90 do_action( 'bp_init_core' ); 90 91 do_action( 'bp_init' ); 92 do_action( 'bp_init_ajax' ); 91 93 } 92 94 93 95 /** -
bp-friends/bp-friends-actions.php
41 41 42 42 return false; 43 43 } 44 add_action( 'bp_init ', 'friends_action_add_friend' );44 add_action( 'bp_init_core', 'friends_action_add_friend' ); 45 45 46 46 function friends_action_remove_friend() { 47 47 if ( !bp_is_friends_component() || !bp_is_current_action( 'remove-friend' ) ) … … 76 76 77 77 return false; 78 78 } 79 add_action( 'bp_init ', 'friends_action_remove_friend' );79 add_action( 'bp_init_core', 'friends_action_remove_friend' ); 80 80 81 81 ?> 82 No newline at end of file -
bp-groups/bp-groups-classes.php
1286 1286 return false; 1287 1287 1288 1288 /* Register the group extension on the bp_init action so we have access to all plugins */ 1289 add_action( 'bp_init ', create_function( '', '$extension = new ' . $group_extension_class . '; add_action( "bp_actions", array( &$extension, "_register" ), 8 );' ), 11 );1289 add_action( 'bp_init_core', create_function( '', '$extension = new ' . $group_extension_class . '; add_action( "bp_actions", array( &$extension, "_register" ), 8 );' ), 11 ); 1290 1290 } 1291 1291 1292 1292 ?> 1293 No newline at end of file -
bp-members/bp-members-signup.php
610 610 if ( locate_template( array( 'registration/register.php' ), false ) || locate_template( array( 'register.php' ), false ) ) 611 611 bp_core_redirect( bp_get_signup_page() ); 612 612 } 613 add_action( 'bp_init ', 'bp_core_wpsignup_redirect' );613 add_action( 'bp_init_core', 'bp_core_wpsignup_redirect' ); 614 614 ?> 615 No newline at end of file