Make WordPress Core

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)

18568.diff​ (1.3 KB ) - added by jtsternberg 15 years ago.
18568.2.diff​ (1.0 KB ) - added by jtsternberg 15 years ago.

Download all attachments as: .zip

Change History (8)

#1 @jtsternberg
15 years ago

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.

#2 @nacin
15 years ago

  • Milestone Awaiting Review → 3.3

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

#3 @jtsternberg
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.

#4 @nacin
15 years ago

  • Owner changed from jtsternberg to azaozz
  • Status new → assigned

#5 @azaozz
15 years ago

  • Component UI → General
  • Summary Full Screen Editor Fields should be hidden if not listed in "supports" in post type registration. → Post title field should be hidden in DFW if not listed in "supports" in post type registration.

#6 @azaozz
15 years ago

  • Resolution → fixed
  • Status assigned → closed

Fixed in [18828]

Note: See TracTickets for help on using tickets.