[wp-trac] [WordPress Trac] #31168: Comments should be turned off on pages by default
WordPress Trac
noreply at wordpress.org
Mon Jun 29 07:41:09 UTC 2015
#31168: Comments should be turned off on pages by default
-------------------------------------+---------------------------
Reporter: melchoyce | Owner: valendesigns
Type: enhancement | Status: assigned
Priority: normal | Milestone: 4.3
Component: Comments | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses:
-------------------------------------+---------------------------
Comment (by efegue):
Replying to [comment:28 valendesigns]:
> The latest patch adds two new functions and filters that we can use to
get & set the default comment and ping status on a per `post_type` basis.
It also includes four unit tests, two of which would fail before the patch
is applied as page & cpt do not support a `closed` default value when left
empty in `wp_insert_post` or when the `post_type` does not support
comments or trackbacks.
>
> With this patch we can explicitly set the defaults on custom post types
with a filter and still allow support for comments and trackbacks on those
post types without having them set to `open` by default. Something I've
personally been wanting for a while.
>
> Whomever is still interested in seeing this move forward, please test
and let me know your thoughts ASAP.
I'm going to test this later today, but how is this different from
disabling comments from the page? You'll need a developer to turn it back
anyway or am I wrong?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31168#comment:29>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list