Changeset 52655
- Timestamp:
- 01/31/2022 01:05:22 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-functions.php
r52299 r52655 683 683 } 684 684 685 // Do not allow users to create a blogthat conflicts with a page on the main blog.685 // Do not allow users to create a site that conflicts with a page on the main blog. 686 686 if ( ! is_subdomain_install() && $wpdb->get_var( $wpdb->prepare( 'SELECT post_name FROM ' . $wpdb->get_blog_prefix( $current_network->site_id ) . "posts WHERE post_type = 'page' AND post_name = %s", $blogname ) ) ) { 687 687 $errors->add( 'blogname', __( 'Sorry, you may not use that site name.' ) ); … … 723 723 } 724 724 725 /* 726 * Do not allow users to create a site that matches an existing user's login name, 727 * unless it's the user's own username. 728 */ 725 729 if ( username_exists( $blogname ) ) { 726 730 if ( ! is_object( $user ) || ( is_object( $user ) && ( $user->user_login != $blogname ) ) ) {
Note: See TracChangeset
for help on using the changeset viewer.