WordPress.org

Make WordPress Core

Ticket #14910: key-instead-of-user-in-ms-functions.patch

File key-instead-of-user-in-ms-functions.patch, 540 bytes (added by WraithKenny, 4 years ago)

Use sanitize_key for wpmu_create_blog in ms-functions

  • wp-includes/ms-functions.php

     
    843843} 
    844844 
    845845function wpmu_create_blog($domain, $path, $title, $user_id, $meta = '', $site_id = 1) { 
    846         $domain = preg_replace( '/\s+/', '', sanitize_user( $domain, true ) ); 
     846        $domain = preg_replace( '/\s+/', '', sanitize_key( $domain ) ); 
    847847 
    848848        if ( is_subdomain_install() ) 
    849849                $domain = str_replace( '@', '', $domain );