Only make URLs relative if its not external

This commit is contained in:
Scott Walkinshaw
2013-05-08 15:50:19 -04:00
parent 5af746fe35
commit d611a219a5
3 changed files with 13 additions and 3 deletions

View File

@@ -34,6 +34,7 @@ class Roots_Nav_Walker extends Walker_Nav_Menu {
$item_html = preg_replace('/<a[^>]*>(.*)<\/a>/iU', '$1', $item_html);
}
$item_html = apply_filters('roots_wp_nav_menu_item', $item_html);
$output .= $item_html;
}