Skip to content

Commit

Permalink
Merge branch 'trunk' of git://core.git.wordpress.org into trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
gilzow committed Jan 4, 2025
2 parents 139b345 + f8f8257 commit e3173cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions wp-includes/ms-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ function wpmu_validate_blog_signup( $blogname, $blog_title, $user = '' ) {
* unless it's the user's own username.
*/
if ( username_exists( $blogname ) ) {
if ( ! is_object( $user ) || ( is_object( $user ) && ( $user->user_login !== $blogname ) ) ) {
if ( ! is_object( $user ) || ( is_object( $user ) && $user->user_login !== $blogname ) ) {
$errors->add( 'blogname', __( 'Sorry, that site is reserved!' ) );
}
}
Expand Down Expand Up @@ -1632,7 +1632,8 @@ function wpmu_welcome_notification( $blog_id, $user_id, $password, $title, $meta
$switched_locale = switch_to_user_locale( $user_id );

$welcome_email = get_site_option( 'welcome_email' );
if ( false == $welcome_email ) {

if ( ! $welcome_email ) {
/* translators: Do not translate USERNAME, SITE_NAME, BLOG_URL, PASSWORD: those are placeholders. */
$welcome_email = __(
'Howdy USERNAME,
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.8-alpha-59573';
$wp_version = '6.8-alpha-59574';

/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
Expand Down

0 comments on commit e3173cc

Please sign in to comment.