diff --git a/wp-includes/user.php b/wp-includes/user.php index 3a11fa10bf..81944eda0e 100644 --- a/wp-includes/user.php +++ b/wp-includes/user.php @@ -2043,6 +2043,10 @@ function wp_insert_user( $userdata ) { */ $user_url = apply_filters( 'pre_user_url', $raw_user_url ); + if ( mb_strlen( $user_url ) > 100 ) { + return new WP_Error( 'user_url_too_long', __( 'User URL may not be longer than 100 characters.' ) ); + } + $user_registered = empty( $userdata['user_registered'] ) ? gmdate( 'Y-m-d H:i:s' ) : $userdata['user_registered']; $user_activation_key = empty( $userdata['user_activation_key'] ) ? '' : $userdata['user_activation_key']; diff --git a/wp-includes/version.php b/wp-includes/version.php index cc2124eee6..8f8e5f22d0 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.0-alpha-52649'; +$wp_version = '6.0-alpha-52650'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.