[wp-trac] [WordPress Trac] #39232: REST API: Can't set existing post format if theme does not support it (2)

WordPress Trac noreply at wordpress.org
Sat Jan 21 02:31:20 UTC 2017


#39232: REST API: Can't set existing post format if theme does not support it (2)
-------------------------------------------------+-------------------------
 Reporter:  iseulde                              |       Owner:  jnylen0
     Type:  defect (bug)                         |      Status:  accepted
 Priority:  normal                               |   Milestone:  Awaiting
Component:  REST API                             |  Review
 Severity:  normal                               |     Version:  4.7
 Keywords:  has-patch has-unit-tests needs-      |  Resolution:
  refresh                                        |     Focuses:
-------------------------------------------------+-------------------------
Changes (by jnylen0):

 * keywords:  has-patch 2nd-opinion has-unit-tests => has-patch has-unit-
     tests needs-refresh
 * owner:   => jnylen0
 * status:  new => accepted


Comment:

 Replying to [comment:12 davidakennedy]:
 > Themes cannot add "custom" post formats. See:
 https://codex.wordpress.org/Post_Formats
 >
 > > New formats cannot be introduced by themes or even plugins.

 This is the piece I was missing here, thank you.  There is a big
 difference between "should not" and "cannot" :)

 Given that, I agree with the approach in [attachment:39232.diff].  I don't
 think we should remove the tests though - let's make sure the requests
 succeed instead.

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


More information about the wp-trac mailing list