Changeset 10322 for trunk/src/bp-members/bp-members-filters.php
- Timestamp:
- 11/02/2015 01:58:52 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-members/bp-members-filters.php
r10149 r10322 33 33 function bp_members_signup_sanitization() { 34 34 35 // Filters on sign-up fields 35 // Filters on sign-up fields. 36 36 $fields = array ( 37 37 'bp_get_signup_username_value', … … 44 44 ); 45 45 46 // Add the filters to each field 46 // Add the filters to each field. 47 47 foreach( $fields as $filter ) { 48 48 add_filter( $filter, 'esc_html', 1 ); … … 51 51 } 52 52 53 // Sanitize email 53 // Sanitize email. 54 54 add_filter( 'bp_get_signup_email_value', 'sanitize_email' ); 55 55 } … … 66 66 * @since 2.1.0 67 67 * 68 * @param array $illegal_names 69 * 68 * @param array $illegal_names Array of illiegal names. 70 69 * @return array $illegal_names 71 70 */ … … 102 101 * @param string $url WP profile edit URL. 103 102 * @param int $user_id ID of the user. 104 * @param string $scheme 105 * 103 * @param string $scheme Scheme to use. 106 104 * @return string 107 105 */ 108 106 function bp_members_edit_profile_url( $url, $user_id, $scheme = 'admin' ) { 109 107 110 // If xprofile is active, use profile domain link 108 // If xprofile is active, use profile domain link. 111 109 if ( ! is_admin() && bp_is_active( 'xprofile' ) ) { 112 110 $profile_link = trailingslashit( bp_core_get_user_domain( $user_id ) . bp_get_profile_slug() . '/edit' ); 113 111 114 // Default to $url 112 // Default to $url. 115 113 } else { 116 114 $profile_link = $url;
Note: See TracChangeset
for help on using the changeset viewer.