#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: nacin

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)

18568.diff (1.3 KB) - added by jtsternberg 21 months ago.
18568.2.diff (1.0 KB) - added by jtsternberg 21 months ago.

Download all attachments as: .zip

Change History (8)

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.

  • Milestone changed from Awaiting Review to 3.3

It would be better to remove the fields all together rather than via CSS.

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.

  • Owner changed from jtsternberg to azaozz
  • Status changed from new to assigned
  • Component changed from UI to General
  • Summary changed from Full Screen Editor Fields should be hidden if not listed in "supports" in post type registration. to Post title field should be hidden in DFW if not listed in "supports" in post type registration.
  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed in [18828]

Note: See TracTickets for help on using tickets.