comment
This commit is contained in:
@@ -124,9 +124,11 @@ add_filter('body_class', 'roots_body_class');
|
|||||||
* @author Scott Walkinshaw <scott.walkinshaw@gmail.com>
|
* @author Scott Walkinshaw <scott.walkinshaw@gmail.com>
|
||||||
*/
|
*/
|
||||||
function roots_root_relative_url($input) {
|
function roots_root_relative_url($input) {
|
||||||
|
// fix for site_url != home_url()
|
||||||
if(!is_admin()) {
|
if(!is_admin()) {
|
||||||
$input = str_replace(site_url(), "", $input);
|
$input = str_replace(site_url(), "", $input);
|
||||||
}
|
}
|
||||||
|
|
||||||
$output = preg_replace_callback(
|
$output = preg_replace_callback(
|
||||||
'!(https?://[^/|"]+)([^"]+)?!',
|
'!(https?://[^/|"]+)([^"]+)?!',
|
||||||
create_function(
|
create_function(
|
||||||
|
|||||||
Reference in New Issue
Block a user