Opened 15 years ago
Closed 15 years ago
#18568 closed defect (bug) (fixed)
Post title field should be hidden in DFW if not listed in "supports" in post type registration.
| Reported by: | jtsternberg | Owned by: | azaozz |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.3 |
| Component: | General | Version: | 3.3 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
As it is, if you create a custom post type, and don't list "title" in the "supports" list, then you won't have a title field in the normal editor (as it should be), but when you click the full screen editor, the title field is displayed. This goes for the editor textarea as well.
The diff file adds the post_type_supports check that the default editor.
Attachments (2)
Change History (8)
#2
@
15 years ago
- Milestone Awaiting Review → 3.3
It would be better to remove the fields all together rather than via CSS.
#3
@
15 years ago
I agree, but the new attached diff is the best I can do. wp-fullscreen.dev.js requires the #wp-fullscreen-title id (see line 306 of wp-fullscreen.dev.js) or the full-screen button will not initiate full-screen mode. I am not a js wizard, so if there's a better way, please enlighten me.
I stand corrected... if the editor areas is not listed in "supports" than the full screen button isn't even available, but the patch addresses the title issue.