Use $current_site->path instead of $base in wpmu_validate_blog_signup(), as $base is now dead. props MarkJaquith. fixes #22787. see #19796.

git-svn-id: https://develop.svn.wordpress.org/trunk@23107 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-12-06 09:43:52 +00:00
parent 110c7769e5
commit 2583123273
1 changed files with 3 additions and 1 deletions

View File

@ -540,7 +540,9 @@ function wpmu_validate_user_signup($user_name, $user_email) {
* @return array Contains the new site data and error messages.
*/
function wpmu_validate_blog_signup($blogname, $blog_title, $user = '') {
global $wpdb, $domain, $base, $current_site;
global $wpdb, $domain, $current_site;
$base = $current_site->path;
$blog_title = strip_tags( $blog_title );
$blog_title = substr( $blog_title, 0, 50 );