wpseek.com
A WordPress-centric search engine for devs and theme authors



validate_blog_form › WordPress Function

Since
Deprecatedn/a
validate_blog_form ( No parameters )
Returns:
  • (array) Contains the new site data and error messages. See wpmu_validate_blog_signup() for details.
Defined at:
Codex:
Change Log:
  • MU

Validates the new site sign-up.



Source

function validate_blog_form() {
	$user = '';
	if ( is_user_logged_in() ) {
		$user = wp_get_current_user();
	}

	return wpmu_validate_blog_signup( $_POST['blogname'], $_POST['blog_title'], $user );
}