[wp-trac] [WordPress Trac] #38610: Set `format` enum based on the post formats registered to the theme

WordPress Trac noreply at wordpress.org
Wed Nov 2 03:36:43 UTC 2016


#38610: Set `format` enum based on the post formats registered to the theme
----------------------------------------+---------------------
 Reporter:  danielbachhuber             |       Owner:  rmccue
     Type:  defect (bug)                |      Status:  closed
 Priority:  normal                      |   Milestone:  4.7
Component:  REST API                    |     Version:
 Severity:  normal                      |  Resolution:  fixed
 Keywords:  needs-unit-tests has-patch  |     Focuses:
----------------------------------------+---------------------
Changes (by rmccue):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"39084"]:
 {{{
 #!CommitTicketReference repository="" revision="39084"
 REST API: Only expose formats supported by the current theme.

 While it's valid to save any format to the database, and WordPress is
 totally fine with that, we should only include the formats specified by
 the theme in the schema.

 Props danielbachhuber.
 Fixes #38610.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38610#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list