Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Regular expression used to create closing tag in function special_menu_items_render_menu_item() is wrong. Generated closing tag for i.e <span>
is </s>
instead of </span>
. This causes bad behaviour of some modules like nice menus that can no longer display submenus. This may also fix problems reported by others like issues 1152500 or 1464774
Provided patch fixes regex and generates correct closing tag (</span>
instead of </s>
)
Comment | File | Size | Author |
---|---|---|---|
fix_bad_closing_tag.patch | 924 bytes | marci003 |
Comments
Comment #1
gagarine CreditAttribution: gagarine commentedThanks for the patch. I will fell more comfortable commit it if someone else can review that.
Comment #2
elBradford CreditAttribution: elBradford commentedThis patch fixes it for me, putting the ul of the child items as a sibling of the span instead of its child.
Comment #3
gagarine CreditAttribution: gagarine commentedcommitted thanks http://drupalcode.org/project/special_menu_items.git/commit/f2dba96
Comment #4.0
(not verified) CreditAttribution: commentedtypo fix