Fix for non-latin characters in urls, similar to pull request #1 #2

Open
wants to merge 1 commit into
from
@@ -587,15 +587,17 @@ function start_el( &$output, $item, $depth, $args ){
$attributes.= ' selected="selected"';
}
- $output .= $indent . '<option ' . $id . $attributes . '>';
+ $option = $indent . '<option ' . $id . $attributes . '>';
$item_output = $args->before;
$item_output .= $dashes . $args->link_before . apply_filters( 'the_title', $item->title, $item->ID ) . $args->link_after;
$item_output .= $args->after;
- $output.= str_replace( '%', '%%', $item_output );
+ $option .= $item_output;
- $output.= "</option>\n";
+ $option .= "</option>\n";
+
+ $output .= str_replace( '%', '%%', $option );
}
function end_el(&$output, $item, $depth) {