WordPress.org
Showcase
Plugins
Themes
Hosting
News
Resources
Learn WordPress
Documentation
Education
Forums
Developers
Blocks
Patterns
Photos
Openverse
↗
︎
WordPress.tv
↗
︎
About
About WordPress
Make WordPress
Events
Five for the Future
Enterprise
Gutenberg
↗
︎
Job Board
↗
︎
Swag
↗
︎
Get WordPress
Search Trac
Get WordPress
Make WordPress Core
Blog
Handbook
Tickets
Components
Browse Source
Trac Timeline
Create a New Ticket
Search:
Login
Notifications
Context Navigation
Back to Ticket #23088
Ticket #23088
: 23088-2.patch
File 23088-2.patch,
248 bytes
(added by
jkhoffman
,
14 years ago
)
Line
1
52,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
> }
Download in other formats:
Original Format