[wp-trac] [WordPress Trac] #40550: Incorrect list of Default Post Format

WordPress Trac noreply at wordpress.org
Mon Apr 24 06:44:44 UTC 2017


#40550: Incorrect list of Default Post Format
----------------------------+-----------------------------
 Reporter:  mehul0810       |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  General         |    Version:  4.7.4
 Severity:  normal          |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 Just stumbled upon an inconsistent behaviour for Post Format.


 == '''Issue''' ==

 On adding below code to `after_setup_theme` action hook.
 {{{
     add_theme_support( 'post-formats',array( 'image', 'gallery', 'video' )
 );
 }}}

 Then go to `Settings > Writing` and check the '''Default Post Format'''
 List. It is showing all the post formats available rather than the post
 formats which have been assigned using the code.

 '''Expected to show only:''' Standard, Image, Gallery and Video as per the
 code added.

 Furthermore, when we select a Default Post Format as Chat which is not
 added in the code. Then creating a post will show Chat Post Format default
 selected which is weird. Does this make sense?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40550>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list