WordPress.org
News
Showcase
Hosting
Extend
Themes
Plugins
Patterns
Blocks
Openverse
↗
︎
Learn
Learn WordPress
Documentation
Forums
Developers
WordPress.tv
↗
︎
Community
Make WordPress
Photo Directory
Five for the Future
Events
Job Board
↗
︎
About
About WordPress
Enterprise
Gutenberg
↗
︎
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
,
12 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
> }
Trac UI Preferences
Download in other formats:
Original Format