mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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: http://core.svn.wordpress.org/trunk@23107 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cfe6e9ed09
commit
72d8ca4770
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user