Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#41971 closed defect (bug) (invalid)

The structure of a menu is wrong, additional DIV's garbage menu

Reported by: dejudicibus's profile dejudicibus Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.8.2
Component: Menus Keywords:
Focuses: Cc:


In the latest version 4.8.2 there is a serious bug. When a menu with drop down submenus is created, WP add </div> tags between menu items garbaging the whole menu. See the top menu of as an example, and inspect menu on top.

Change History (3)

#1 @SergeyBiryukov
7 years ago

  • Keywords reporter-feedback added

Hi @dejudicibus, welcome to WordPress Trac! Thanks for the report.

  1. Does the issue still happen with all plugins disabled and a default theme (Twenty Seventeen) activated?
  2. Is it new in 4.8.2? I don't see anything in the changelog that would cause this.

#2 @dejudicibus
7 years ago

  • Resolution set to invalid
  • Status changed from new to closed

I found the problem. It was related to a filter in the theme. It was because of a change to

<ul class="sub-menu">

that did not occurred anymore because in new version the tag is

<ul  class="sub-menu">

(two spaces after ul)

#3 @SergeyBiryukov
7 years ago

  • Keywords reporter-feedback removed
  • Milestone Awaiting Review deleted

Thanks for the follow-up!

Note: See TracTickets for help on using tickets.