[wp-trac] [WordPress Trac] #64156: add_post_type_support() does not merge sub-properties for the same feature

WordPress Trac noreply at wordpress.org
Wed Oct 29 14:06:15 UTC 2025


#64156: add_post_type_support() does not merge sub-properties for the same feature
--------------------------------------+---------------------
 Reporter:  fabiankaegy               |       Owner:  (none)
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  6.9
Component:  General                   |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------

Comment (by wildworks):

 > Rather than adding more args to the `editor` feature, it's probably
 better to introduce new features to this system, like:
 >
 > {{{#!php
 > add_theme_support( 'page', 'block-comments' );
 > }}}
 >
 > Rather than overloading the args, like:
 >
 > {{{#!php
 > add_post_type_support( 'page', 'editor', array(
 >     'block-comments' => true,
 > ) );
 > }}}

 This was discussed previously. The reason Notes was made a sub-feature is
 that it cannot work without an editor. See
 https://github.com/WordPress/gutenberg/pull/71682#issuecomment-3297216447

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


More information about the wp-trac mailing list