[wp-trac] [WordPress Trac] #33490: Comments for WordPress 4.3 to be default "off" for pages but 1 remains
WordPress Trac
noreply at wordpress.org
Fri Aug 21 17:55:51 UTC 2015
#33490: Comments for WordPress 4.3 to be default "off" for pages but 1 remains
----------------------------------------+-------------------------
Reporter: asilver | Owner: swissspidy
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.3.1
Component: Upgrade/Install | Version: 4.3
Severity: normal | Resolution: fixed
Keywords: good-first-bug needs-patch | Focuses:
----------------------------------------+-------------------------
Changes (by kraftbj):
* keywords: good-first-bug has-patch => good-first-bug needs-patch
Comment:
@asilver - you'll need to use the page arg, e.g.
get_default_comment_status( 'page' ); Otherwise, it'll default to 'post'
(the default), which would set it as open.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33490#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list