WordPress.org

Make WordPress Core

Ticket #23088: 23088-2.patch

File 23088-2.patch, 248 bytes (added by jkhoffman, 16 months ago)
Line 
152,53c52,54
2<               if ( !empty( $blogname ) )
3<                       $url = preg_replace( '|^([^\.]+://)|', '$1' . $blogname . '.', $url );
4---
5>               if ( !empty( $blogname ) ) {
6>                       $url = preg_replace( '|^([^\.]+://)(?:www\.)?|', '$1' . $blogname . '.', $url );
7>               }