[wp-trac] [WordPress Trac] #24146: Menu items with blank labels are removed on saving

WordPress Trac noreply at wordpress.org
Wed Oct 1 22:31:43 UTC 2014


#24146: Menu items with blank labels are removed on saving
-------------------------------------------------+-------------------------
 Reporter:  rodrigo@…                            |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Menus                                |  Review
 Severity:  normal                               |     Version:  3.5.1
 Keywords:  has-patch needs-testing 2nd-opinion  |  Resolution:
                                                 |     Focuses:
-------------------------------------------------+-------------------------

Comment (by LeoPeo):

 Hello,
 I've tested the patch 24146 and it works!

 Right now, this is what I see:

 https://www.dropbox.com/s/bzd5j6i5g0yprml/24146.png?dl=0

 WP: 4.0
 Language:Italian

 As you can see elements has no label and also element heigh is affected.

 I've patched in this way:

 1) If $title is not set, $title: (no label)
 2) If $title is not set, I add to .menu-item-title the following class so
 it's styled like you delete the title in preview.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/24146#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list