Changeset 11320 for trunk/wp-admin/includes/user.php
- Timestamp:
- 05/13/2009 10:41:05 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/user.php
r11319 r11320 89 89 $user->user_email = wp_specialchars( trim( $_POST['email'] )); 90 90 if ( isset( $_POST['url'] ) ) { 91 $user->user_url = clean_url( trim( $_POST['url'] )); 92 $user->user_url = preg_match('/^(https?|ftps?|mailto|news|irc|gopher|nntp|feed|telnet):/is', $user->user_url) ? $user->user_url : 'http://'.$user->user_url; 91 if ( empty ( $_POST['url'] ) || $_POST['url'] == 'http://' ) { 92 $user->user_url = ''; 93 } else { 94 $user->user_url = clean_url( trim( $_POST['url'] )); 95 $user->user_url = preg_match('/^(https?|ftps?|mailto|news|irc|gopher|nntp|feed|telnet):/is', $user->user_url) ? $user->user_url : 'http://'.$user->user_url; 96 } 93 97 } 94 98 if ( isset( $_POST['first_name'] ))
Note: See TracChangeset
for help on using the changeset viewer.