Empty menu item title messes up menu structure #255

Closed
cdauth opened this Issue Sep 11, 2015 · 2 comments

Projects

None yet

2 participants

@cdauth
cdauth commented Sep 11, 2015

In qtranslate_frontend.php, menu items with an empty title are removed from the menu. Any sub-items of the item that is removed are not removed from the menu. This will cause Wordpress to display them as top-level menu items.

For example, create a menu like this:

- Test
- (Empty title)
    - Sub item 1
    - Sub item 2
- Test 2

It will be displayed like this:

- Test
- Sub item 1
- Sub item 2
- Test 2

If a menu item is removed, the sub-items should be removed too.

@johnclause
Member

Good point, thank you for the report. Is there any chance you would submit a pull request with a code to fix it?

@johnclause johnclause added a commit that referenced this issue Sep 14, 2015
@johnclause johnclause Issue #255 b588107
@johnclause
Member

The fix will be in release 3.4.5, it is now on GitHub. Do you have a quick way to test it? Please, let me know if there is a problem.

@johnclause johnclause closed this Sep 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment