Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#24440 closed defect (bug) (duplicate)

despite limiting add_theme_support post-formats, all formats are displayed on posts and cpts

Reported by: ryno267 Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.6
Component: Post Formats Keywords: needs-docs needs-codex
Focuses: Cc:


Example is there are only 4 post formats that are added to add_theme_support, but all display on add new post and add new custom post type.

add_theme_support( 'post-formats', array( 'image', 'video', 'audio', 'link' ) );

Also have custom post type code that adds 'post-formats' to 'supports'

'supports' => array( 'title', 'editor', 'thumbnail', 'post-formats'),

Regardless of that, all 10 post formats are shown on add new posts and the 'add new' CPT I added support to.
Should it not only display those 4?

Change History (3)

#1 @johnbillion
8 years ago

  • Keywords needs-docs added

This is intentional, but there needs to be some documentation to make this clear to developers.

See: #19570, #23347

#2 @sunnyratilal
8 years ago

  • Keywords needs-codex added

#3 @SergeyBiryukov
8 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #23718, #23844, and #23990.

Related: #24059

Note: See TracTickets for help on using tickets.