Skip to content
This repository was archived by the owner on Feb 20, 2019. It is now read-only.

Commit 8898057

Browse files
author
Jonathan Bardo
committed
Wrong regex in framework
1 parent bb4c573 commit 8898057

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wp-content/mu-plugins/jb-framework/inc/class-template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function menu_items($items, $args) {
7373
$url = array_reverse($url);
7474
foreach ($url as $key => $href){
7575
$class = ($key==0) ? 'current':'current current-ancestor';
76-
$items = preg_replace('#'.$href.'/"#', $href . '/" class="'.$class.'"', $items); // apply class current if current url matches href
76+
$items = preg_replace('#/'.$href.'/"#', $href . '/" class="'.$class.'"', $items); // apply class current if current url matches href
7777
}
7878
}
7979

0 commit comments

Comments
 (0)