[wp-trac] [WordPress Trac] #42785: Change default of `show_in_rest` in register_post_type and register_taxonomy

WordPress Trac noreply at wordpress.org
Mon Feb 26 22:00:46 UTC 2018


#42785: Change default of `show_in_rest` in register_post_type and
register_taxonomy
-----------------------------------+--------------------
 Reporter:  joehoyle               |       Owner:
     Type:  enhancement            |      Status:  new
 Priority:  normal                 |   Milestone:  4.9.5
Component:  REST API               |     Version:
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |     Focuses:
-----------------------------------+--------------------
Changes (by audrasjb):

 * keywords:   => has-patch 2nd-opinion


Comment:

 Hello,

 I tested this patch with the follwing parameter on a new custom post type:
 - parameter `public` set to `true` : `show_in_rest ` is set to `true` by
 default
 - parameter `publicly_queryable` set to `true` : `show_in_rest ` is set to
 `true` by default
 When parameters are combinated, the behaviour seems logical too.

 @Rahmohn I think you can duplicate your patch to `register_taxonomy`.

 ''(Note: I'll also ask for a 2nd-opinion is possible with the related
 keyword)''

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


More information about the wp-trac mailing list