[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 Mar 19 03:42:20 UTC 2018
    
    
  
#42785: Change default of `show_in_rest` in register_post_type and
register_taxonomy
-------------------------------------------------+-------------------------
 Reporter:  joehoyle                             |       Owner:  pento
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  4.9.5
Component:  REST API                             |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-unit-tests needs-    |     Focuses:
  refresh                                        |
-------------------------------------------------+-------------------------
Changes (by pento):
 * keywords:  has-patch 2nd-opinion => has-patch needs-unit-tests needs-
     refresh
Comment:
 In [attachment:42785.3.diff]:
 * Simplify the logic for deciding the post type `show_in_rest` default.
 * Show all post types for logged in users.
 * Show meta for logged in users.
 * Add tests for post meta showing for logged in users.
 TODO:
 * Duplicate the new post type logic in taxonomies.
 * Add many more unit tests.
 * Tweak the meta logic for logged in users, to hide meta with a name
 beginning with `_` that hasn't explicitly set `show_in_rest` to `true`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42785#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
    
    
More information about the wp-trac
mailing list