diff options
| author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-09-10 21:50:50 +0000 |
|---|---|---|
| committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-09-10 21:50:50 +0000 |
| commit | 261eeb28d01680299ec19e998197e055299aec02 (patch) | |
| tree | 34b0c7485dd8aa87bf84c345ef350628e9f078c4 /wp-includes | |
| parent | b658e546840b8f23e2a1e413f6510104d73ea91f (diff) | |
| download | wordpress-mu-261eeb28d01680299ec19e998197e055299aec02.tar.gz wordpress-mu-261eeb28d01680299ec19e998197e055299aec02.tar.xz wordpress-mu-261eeb28d01680299ec19e998197e055299aec02.zip | |
Strip tags instead of sanitize_title
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1053 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes')
| -rw-r--r-- | wp-includes/wpmu-functions.php | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/wp-includes/wpmu-functions.php b/wp-includes/wpmu-functions.php index 2551ca8..14bd405 100644 --- a/wp-includes/wpmu-functions.php +++ b/wp-includes/wpmu-functions.php @@ -907,7 +907,7 @@ function wpmu_validate_user_signup($user_name, $user_email) { $errors = new WP_Error(); - $user_name = sanitize_title($user_name); + $user_name = sanitize_user($user_name); $user_email = sanitize_email( $user_email ); if ( empty( $user_name ) ) @@ -1003,7 +1003,7 @@ function wpmu_validate_blog_signup($blog_id, $blog_title, $user = '') { global $wpdb, $domain, $base; $blog_id = sanitize_user( $blog_id ); - $blog_title = sanitize_title( $blog_title ); + $blog_title = strip_tags( $blog_title ); $errors = new WP_Error(); $illegal_names = get_site_option( "illegal_names" ); @@ -1012,8 +1012,6 @@ function wpmu_validate_blog_signup($blog_id, $blog_title, $user = '') { add_site_option( "illegal_names", $illegal_names ); } - $blog_id = sanitize_title($blog_id); - if ( empty( $blog_id ) ) $errors->add('blog_id', __("Please enter a blog name")); @@ -1238,7 +1236,7 @@ function wpmu_create_user( $user_name, $password, $email) { function wpmu_create_blog($domain, $path, $title, $user_id, $meta = '', $site_id = 1) { $domain = sanitize_user( $domain ); - $title = sanitize_title( $title ); + $title = strip_tags( $title ); $user_id = (int) $user_id; if( empty($path) ) @@ -1860,7 +1858,6 @@ add_filter( 'cat_id_filter', 'global_categories' ); /* WordPress MU Default Filters */ add_filter('the_title', 'wp_filter_kses'); -add_filter('the_title', 'sanitize_title'); /* Pluggable */ |
