diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-10-30 17:14:19 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-10-30 17:14:19 +0000 |
commit | 3c44c8c8b55c5e5b3389bf7699bc34c223f9ebf6 (patch) | |
tree | c475fd2f8e4a92b098e7bf5340d17e50d53457fe | |
parent | d85d717aedbc7690e2a450e40dab8fcebd94b38c (diff) | |
download | wordpress-mu-3c44c8c8b55c5e5b3389bf7699bc34c223f9ebf6.tar.gz wordpress-mu-3c44c8c8b55c5e5b3389bf7699bc34c223f9ebf6.tar.xz wordpress-mu-3c44c8c8b55c5e5b3389bf7699bc34c223f9ebf6.zip |
Limit blog titles to 50 characters
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1140 7be80a69-a1ef-0310-a953-fb0f7c49ff36
-rw-r--r-- | wp-includes/wpmu-functions.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/wp-includes/wpmu-functions.php b/wp-includes/wpmu-functions.php index eab496d..6f64768 100644 --- a/wp-includes/wpmu-functions.php +++ b/wp-includes/wpmu-functions.php @@ -943,6 +943,7 @@ function wpmu_validate_blog_signup($blog_id, $blog_title, $user = '') { $blog_id = sanitize_user( $blog_id ); $blog_title = strip_tags( $blog_title ); + $blog_title = substr( $blog_title, 0, 50 ); $errors = new WP_Error(); $illegal_names = get_site_option( "illegal_names" ); |