WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #31168, comment 10


Ignore:
Timestamp:
01/29/2015 05:19:32 PM (6 years ago)
Author:
rachelbaker
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31168, comment 10

    initial v1  
    1 Would a better approach here be to use `post_type_supports()`?  Remove `comments` from the `supports` array when page is registered. 
     1Would a better approach here be to use `post_type_supports()`?  Remove `comments` from the `supports` array when the page type is registered. 
     2
     3Sites could re-enable comments with `add_post_type_support( 'page', 'comments' );`
     4
     5Using `post_type_supports` checks is how the REST API will determine what fields to include in endpoint responses.