Skip to:
Content

BuddyPress.org

Changeset 1809


Ignore:
Timestamp:
09/07/2009 06:46:37 PM (15 years ago)
Author:
apeatling
Message:

Fixes #983

Location:
trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity.php

    r1805 r1809  
    104104    do_action( 'bp_activity_setup_nav' );
    105105}
    106 add_action( 'wp', 'bp_activity_setup_nav', 2 );
    107 add_action( 'admin_menu', 'bp_activity_setup_nav', 2 );
     106add_action( 'plugins_loaded', 'bp_activity_setup_nav' );
     107add_action( 'admin_menu', 'bp_activity_setup_nav' );
    108108
    109109
  • trunk/bp-blogs.php

    r1794 r1809  
    168168    do_action( 'bp_blogs_setup_nav' );
    169169}
    170 add_action( 'wp', 'bp_blogs_setup_nav', 2 );
    171 add_action( 'admin_menu', 'bp_blogs_setup_nav', 2 );
     170add_action( 'plugins_loaded', 'bp_blogs_setup_nav' );
     171add_action( 'admin_menu', 'bp_blogs_setup_nav' );
    172172
    173173function bp_blogs_directory_blogs_setup() {
  • trunk/bp-core.php

    r1801 r1809  
    352352    }   
    353353}
    354 add_action( 'wp', 'bp_core_setup_nav', 2 );
    355 add_action( 'admin_menu', 'bp_core_setup_nav', 2 );
     354add_action( 'plugins_loaded', 'bp_core_setup_nav' );
     355add_action( 'admin_menu', 'bp_core_setup_nav' );
    356356
    357357
     
    10391039    }
    10401040   
    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}
     1043add_filter( 'bp_core_get_user_displayname', 'wp_filter_kses', 1 );
     1044add_filter( 'bp_core_get_user_displayname', 'force_balance_tags' );
     1045add_filter( 'bp_core_get_user_displayname', 'trim' );
     1046add_filter( 'bp_core_get_user_displayname', 'stripslashes' );
     1047
    10431048
    10441049/**
  • trunk/bp-groups.php

    r1801 r1809  
    293293    do_action( 'groups_setup_nav', $bp->groups->current_group->user_has_access );
    294294}
    295 add_action( 'wp', 'groups_setup_nav', 2 );
    296 add_action( 'admin_menu', 'groups_setup_nav', 2 );
     295add_action( 'plugins_loaded', 'groups_setup_nav' );
     296add_action( 'admin_menu', 'groups_setup_nav' );
    297297
    298298function groups_directory_groups_setup() {
     
    467467            groups_send_invites( $bp->groups->new_group_id, $bp->loggedin_user->id );
    468468        }
    469        
     469
    470470        do_action( 'groups_create_group_step_save_' . $bp->groups->current_create_step );
    471471        do_action( 'groups_create_group_step_complete' ); // Mostly for clearing cache on a generic action name
     
    25302530   
    25312531    $meta_key = preg_replace( '|[^a-z0-9_]|i', '', $meta_key );
    2532     $meta_value = (string)$meta_value;
    25332532
    25342533    if ( is_string($meta_value) )
  • trunk/bp-groups/bp-groups-classes.php

    r1807 r1809  
    926926    var $nav_item_name = false;
    927927   
     928    var $display_hook = 'groups_custom_group_boxes';
    928929    var $template_file = 'plugin-template';
    929930   
     
    10041005            /* Hook the group home widget */
    10051006            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' ) );
    10071008        }
    10081009    }
     
    10201021        return false;
    10211022   
    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 );' ) );
    10241025}
    10251026
  • trunk/bp-messages.php

    r1749 r1809  
    137137    do_action( 'messages_setup_nav' );
    138138}
    139 add_action( 'wp', 'messages_setup_nav', 2 );
    140 add_action( 'admin_menu', 'messages_setup_nav', 2 );
     139add_action( 'plugins_loaded', 'messages_setup_nav' );
     140add_action( 'admin_menu', 'messages_setup_nav' );
    141141
    142142
  • trunk/bp-wire.php

    r1779 r1809  
    5353    do_action( 'bp_wire_setup_nav' );
    5454}
    55 add_action( 'wp', 'bp_wire_setup_nav', 2 );
    56 add_action( 'admin_menu', 'bp_wire_setup_nav', 2 );
     55add_action( 'plugins_loaded', 'bp_wire_setup_nav' );
     56add_action( 'admin_menu', 'bp_wire_setup_nav' );
    5757
    5858
  • trunk/bp-xprofile.php

    r1801 r1809  
    222222    do_action( 'xprofile_setup_nav' );
    223223}
    224 add_action( 'wp', 'xprofile_setup_nav', 2 );
    225 add_action( 'admin_menu', 'xprofile_setup_nav', 2 );
     224add_action( 'plugins_loaded', 'xprofile_setup_nav' );
     225add_action( 'admin_menu', 'xprofile_setup_nav' );
    226226
    227227
  • trunk/bp-xprofile/bp-xprofile-filters.php

    r1748 r1809  
    1818add_filter( 'bp_get_the_profile_field_value', 'wpautop' );
    1919add_filter( 'bp_get_the_profile_field_value', 'make_clickable' );
     20add_filter( 'bp_get_the_profile_field_value', 'force_balance_tags' );
    2021
    2122add_filter( 'bp_get_the_profile_field_value', 'xprofile_filter_format_field_value', 1, 2 );
     
    6263                    $new_values[] = $value;
    6364                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>';
    6566            }
    6667        }
Note: See TracChangeset for help on using the changeset viewer.