Opened 8 years ago
Closed 8 years ago
#36353 closed defect (bug) (fixed)
Hiding the Title Attribute in the screen options of Menu page not working
Reported by: | sidati | Owned by: | westonruter |
---|---|---|---|
Milestone: | 4.5 | Priority: | normal |
Severity: | normal | Version: | 4.6 |
Component: | Menus | Keywords: | has-patch commit |
Focuses: | ui, javascript | Cc: |
Description
Hi there,
On the screen options of Menus page, you cannot hide "Title Attribute" using screen options checkbox, after quick investigation, it seems the value
of the field is not the same as field's class
, so there is 2 ways to fix that, either change the value of the field to be title-attribute
to just change the class attribute of the related p
tag to be field-attr-title description description-wide
Regards,
Sidati
Attachments (4)
Change History (21)
#3
@
8 years ago
- Keywords commit added
@sidati good catch. This fixes the issue. But to help ensure back-compat, I suggest we just add the class name as opposed to replacing the class name, in case any plugins are targeting it. See 36353.2.diff.
#6
@
8 years ago
I'm afraid I won't have so much time to look at this. Seems to me either solutions would be OK, as long as the field name is the same in the Menus screen and in the Customizer, unless I'm missing something.
#8
@
8 years ago
@sidati how about 36353.3.diff?
#9
@
8 years ago
@westonruter, Just apply your patch and everything works great on both screens wp-admin/nav-menus.php
and the customizer, you only forgot to update the rtl stylesheet :P
#10
@
8 years ago
- Keywords commit added
@sidati Thanks! The RTL stylesheet will be automatically updated via the build script (via grunt rtlcss
). You can see that there are no RTL CSS files in the src repo.
#11
@
8 years ago
@westonruter, Sorry i've been using this repo : https://core.svn.wordpress.org/trunk/.
Anyway screens options are perfect now, thank you guys for your time
#13
@
8 years ago
36353.4.patch looks good.
This ticket was mentioned in Slack in #core by mike. View the logs.
8 years ago
#15
@
8 years ago
36353.4.patch looks good.
Broken since [36908].
Changing
title-attribute
toattr-title
in [36908] was probably wrong because it's breaking [32691] (the default setting) too.cc: @westonruter, @afercia