Ticket #18397: 18397.patch
File 18397.patch, 562 bytes (added by , 13 years ago) |
---|
-
wp-includes/functions.php
3694 3694 $url = WP_SITEURL; 3695 3695 } else { 3696 3696 $schema = is_ssl() ? 'https://' : 'http://'; 3697 $url = preg_replace(' |/wp-admin/.*|i', '', $schema . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);3697 $url = preg_replace('#/(wp-admin/.*|wp-login.php)#i', '', $schema . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']); 3698 3698 } 3699 3699 return rtrim($url, '/'); 3700 3700 }