Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/02/2015 01:58:52 AM (9 years ago)
Author:
tw2113
Message:

More documentation cleanup for the Members component.

See #6402.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/bp-members-filters.php

    r10149 r10322  
    3333function bp_members_signup_sanitization() {
    3434
    35     // Filters on sign-up fields
     35    // Filters on sign-up fields.
    3636    $fields = array (
    3737        'bp_get_signup_username_value',
     
    4444    );
    4545
    46     // Add the filters to each field
     46    // Add the filters to each field.
    4747    foreach( $fields as $filter ) {
    4848        add_filter( $filter, 'esc_html',       1 );
     
    5151    }
    5252
    53     // Sanitize email
     53    // Sanitize email.
    5454    add_filter( 'bp_get_signup_email_value', 'sanitize_email' );
    5555}
     
    6666 * @since 2.1.0
    6767 *
    68  * @param array $illegal_names
    69  *
     68 * @param array $illegal_names Array of illiegal names.
    7069 * @return array $illegal_names
    7170 */
     
    102101 * @param string $url     WP profile edit URL.
    103102 * @param int    $user_id ID of the user.
    104  * @param string $scheme
    105  *
     103 * @param string $scheme  Scheme to use.
    106104 * @return string
    107105 */
    108106function bp_members_edit_profile_url( $url, $user_id, $scheme = 'admin' ) {
    109107
    110     // If xprofile is active, use profile domain link
     108    // If xprofile is active, use profile domain link.
    111109    if ( ! is_admin() && bp_is_active( 'xprofile' ) ) {
    112110        $profile_link = trailingslashit( bp_core_get_user_domain( $user_id ) . bp_get_profile_slug() . '/edit' );
    113111
    114     // Default to $url
     112    // Default to $url.
    115113    } else {
    116114        $profile_link = $url;
Note: See TracChangeset for help on using the changeset viewer.