Changeset 1809
- Timestamp:
- 09/07/2009 06:46:37 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity.php
r1805 r1809 104 104 do_action( 'bp_activity_setup_nav' ); 105 105 } 106 add_action( ' wp', 'bp_activity_setup_nav', 2);107 add_action( 'admin_menu', 'bp_activity_setup_nav' , 2);106 add_action( 'plugins_loaded', 'bp_activity_setup_nav' ); 107 add_action( 'admin_menu', 'bp_activity_setup_nav' ); 108 108 109 109 -
trunk/bp-blogs.php
r1794 r1809 168 168 do_action( 'bp_blogs_setup_nav' ); 169 169 } 170 add_action( ' wp', 'bp_blogs_setup_nav', 2);171 add_action( 'admin_menu', 'bp_blogs_setup_nav' , 2);170 add_action( 'plugins_loaded', 'bp_blogs_setup_nav' ); 171 add_action( 'admin_menu', 'bp_blogs_setup_nav' ); 172 172 173 173 function bp_blogs_directory_blogs_setup() { -
trunk/bp-core.php
r1801 r1809 352 352 } 353 353 } 354 add_action( ' wp', 'bp_core_setup_nav', 2);355 add_action( 'admin_menu', 'bp_core_setup_nav' , 2);354 add_action( 'plugins_loaded', 'bp_core_setup_nav' ); 355 add_action( 'admin_menu', 'bp_core_setup_nav' ); 356 356 357 357 … … 1039 1039 } 1040 1040 1041 return apply_filters( 'bp_core_get_user_displayname', stripslashes( wp_filter_kses( trim( $fullname ) ) ) ); 1042 } 1041 return apply_filters( 'bp_core_get_user_displayname', $fullname ); 1042 } 1043 add_filter( 'bp_core_get_user_displayname', 'wp_filter_kses', 1 ); 1044 add_filter( 'bp_core_get_user_displayname', 'force_balance_tags' ); 1045 add_filter( 'bp_core_get_user_displayname', 'trim' ); 1046 add_filter( 'bp_core_get_user_displayname', 'stripslashes' ); 1047 1043 1048 1044 1049 /** -
trunk/bp-groups.php
r1801 r1809 293 293 do_action( 'groups_setup_nav', $bp->groups->current_group->user_has_access ); 294 294 } 295 add_action( ' wp', 'groups_setup_nav', 2);296 add_action( 'admin_menu', 'groups_setup_nav' , 2);295 add_action( 'plugins_loaded', 'groups_setup_nav' ); 296 add_action( 'admin_menu', 'groups_setup_nav' ); 297 297 298 298 function groups_directory_groups_setup() { … … 467 467 groups_send_invites( $bp->groups->new_group_id, $bp->loggedin_user->id ); 468 468 } 469 469 470 470 do_action( 'groups_create_group_step_save_' . $bp->groups->current_create_step ); 471 471 do_action( 'groups_create_group_step_complete' ); // Mostly for clearing cache on a generic action name … … 2530 2530 2531 2531 $meta_key = preg_replace( '|[^a-z0-9_]|i', '', $meta_key ); 2532 $meta_value = (string)$meta_value;2533 2532 2534 2533 if ( is_string($meta_value) ) -
trunk/bp-groups/bp-groups-classes.php
r1807 r1809 926 926 var $nav_item_name = false; 927 927 928 var $display_hook = 'groups_custom_group_boxes'; 928 929 var $template_file = 'plugin-template'; 929 930 … … 1004 1005 /* Hook the group home widget */ 1005 1006 if ( $bp->current_component == $bp->groups->slug && $bp->is_single_item && ( !$bp->current_action || 'home' == $bp->current_action ) ) 1006 add_action( 'groups_custom_group_boxes', array( &$this, 'widget_display' ) );1007 add_action( $this->display_hook, array( &$this, 'widget_display' ) ); 1007 1008 } 1008 1009 } … … 1020 1021 return false; 1021 1022 1022 $extension = new $group_extension_class;1023 add_action( ' wp', array( &$extension, '_register' ), 2);1023 /* Register the group extension on the plugins_loaded action so we have access to all plugins */ 1024 add_action( 'plugins_loaded', create_function( '', '$extension = new ' . $group_extension_class . '; add_action( "wp", array( &$extension, "_register" ), 2 );' ) ); 1024 1025 } 1025 1026 -
trunk/bp-messages.php
r1749 r1809 137 137 do_action( 'messages_setup_nav' ); 138 138 } 139 add_action( ' wp', 'messages_setup_nav', 2);140 add_action( 'admin_menu', 'messages_setup_nav' , 2);139 add_action( 'plugins_loaded', 'messages_setup_nav' ); 140 add_action( 'admin_menu', 'messages_setup_nav' ); 141 141 142 142 -
trunk/bp-wire.php
r1779 r1809 53 53 do_action( 'bp_wire_setup_nav' ); 54 54 } 55 add_action( ' wp', 'bp_wire_setup_nav', 2);56 add_action( 'admin_menu', 'bp_wire_setup_nav' , 2);55 add_action( 'plugins_loaded', 'bp_wire_setup_nav' ); 56 add_action( 'admin_menu', 'bp_wire_setup_nav' ); 57 57 58 58 -
trunk/bp-xprofile.php
r1801 r1809 222 222 do_action( 'xprofile_setup_nav' ); 223 223 } 224 add_action( ' wp', 'xprofile_setup_nav', 2);225 add_action( 'admin_menu', 'xprofile_setup_nav' , 2);224 add_action( 'plugins_loaded', 'xprofile_setup_nav' ); 225 add_action( 'admin_menu', 'xprofile_setup_nav' ); 226 226 227 227 -
trunk/bp-xprofile/bp-xprofile-filters.php
r1748 r1809 18 18 add_filter( 'bp_get_the_profile_field_value', 'wpautop' ); 19 19 add_filter( 'bp_get_the_profile_field_value', 'make_clickable' ); 20 add_filter( 'bp_get_the_profile_field_value', 'force_balance_tags' ); 20 21 21 22 add_filter( 'bp_get_the_profile_field_value', 'xprofile_filter_format_field_value', 1, 2 ); … … 62 63 $new_values[] = $value; 63 64 else 64 $new_values[] = '<a href="' . site_url( BP_MEMBERS_SLUG ) . '/?s=' . $value. '">' . $value . '</a>';65 $new_values[] = '<a href="' . site_url( BP_MEMBERS_SLUG ) . '/?s=' . strip_tags( $value ) . '">' . $value . '</a>'; 65 66 } 66 67 }
Note: See TracChangeset
for help on using the changeset viewer.