Opened 2 years ago

Last modified 4 weeks ago

#16787 new defect (bug)

Removing title from a page (blank title) results in collapsed UI element in menu builder

Reported by: jafoca Owned by:
Priority: normal Milestone: Awaiting Review
Component: Menus Version: 3.1
Severity: normal Keywords: ui-feedback has-patch
Cc: mdhansen@…

Description

This minor issue has to do with the custom menu interface and titleless pages pages - this is handled somewhat gracefully when you initially create a titleless page using (pending) placeholder text, so I thought I would report it.

Issue preconditions

  • WordPress 3.1
  • Page created with title and body text
  • Page added to a custom menu and saved

Steps to recreate

  • remove title from the page from one of the "edit page" UIs
  • visit the Menus interface
  • you should now see a collapsed menu item in the menu creation interface (screenshot attached

Tested In: Chrome OSX 10.0.648.127 | Firefox OSX 3.6.13

Attachments (3)

wp-menu-bug.jpg (57.0 KB) - added by jafoca 2 years ago.
screenshot showing collapsed menu item
16787.diff (329 bytes) - added by garyc40 2 years ago.
set min-height for menu item title
16787.2.diff (316 bytes) - added by MikeHansenMe 7 months ago.
refreshed

Download all attachments as: .zip

Change History (8)

jafoca2 years ago

screenshot showing collapsed menu item

comment:1   nerx2 years ago

  • Keywords needs-patch added
  • Severity changed from minor to normal

Test results: True. UI Collapse. (Only 3.1, doesn't happen in other versions!)

garyc402 years ago

set min-height for menu item title

  • Keywords has-patch added; needs-patch removed

A quick fix would be adding CSS min-height to the title (patch attached). Another direction would be outputting a default title such as (No title) to keep the title box occupied when there's nothing there.

to me it looks like as if the wrapping element is not taking care of such. Adding a default title would probably the most easy hotfix or just adding good old   to the output.

refreshed

  • Cc mdhansen@… added
Note: See TracTickets for help on using tickets.