Skip to content
WordPress.org
News
Download & Extend
Get WordPress
Themes
Patterns
Plugins
Mobile
Hosting
Openverse ↗︎
Learn
Learn WordPress
Documentation
Forums
Developers
WordPress.tv ↗︎
Community
Make WordPress
Photo Directory
Five for the Future
WordCamp ↗︎
Meetups ↗︎
Job Board ↗︎
About
About WordPress
Showcase
Enterprise
Gutenberg ↗︎
WordPress Swag Store ↗︎
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
,
10 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