Opened 9 years ago
Closed 9 years ago
#33490 closed defect (bug) (fixed)
Comments for WordPress 4.3 to be default "off" for pages but 1 remains
Reported by: | asilver | Owned by: | swissspidy |
---|---|---|---|
Milestone: | 4.3.1 | Priority: | normal |
Severity: | normal | Version: | 4.3 |
Component: | Upgrade/Install | Keywords: | good-first-bug fixed-major has-patch commit |
Focuses: | Cc: |
Description
Hi
With the 4.3 release, Comments are supposed to be default "off" on pages. In testing I found the Sample-Page isn't set correctly, with comments "on" as default. This could be confusing to new users to WordPress.
I took the 4.3 zip from .org, not an install from a hosting company auto installer.
Attachments (4)
Change History (16)
#2
@
9 years ago
- Component changed from General to Upgrade/Install
- Focuses ui removed
- Milestone changed from Awaiting Review to 4.3.1
- Owner set to swissspidy
- Status changed from new to accepted
#3
@
9 years ago
- Keywords has-patch added; needs-patch removed
Uploaded patch 33490.diff which will create the sample page with comments off on install.
#4
@
9 years ago
Confirmed 33490.diff resolves. New install's Sample Page is 100% less open for comments.
@
9 years ago
using the function which returns the globally default comment status instead of just using closed
#6
@
9 years ago
- Keywords needs-patch added; has-patch removed
@asilver - you'll need to use the post type arg, e.g. get_default_comment_status( 'page' ); Otherwise, it'll default to 'post' (the default), which would set it as open.
#8
@
9 years ago
- Keywords fixed-major added; needs-patch removed
- Resolution fixed deleted
- Status changed from closed to reopened
Thanks for your report, asilver, and welcome to Trac!
I can confirm this.
comment_status
isn't set when creating the page inwp_install_defaults()
because it uses$wpdb->insert()
directly.get_default_comment_status()
should be used here.I think this bug is worth fixing as part of 4.3.1 for the reason mentioned above.