Skip to content

Commit c84413e

Browse files
committed
All: Disable comments on wpdocs sites
There were some 14,000 spam comments and pingbacks on api.jquery.com pending approval from from last year alone. This given that API pages are of type "post", and bots presumably submit these directly via POST parameters despite no form being rendered. Rather than setting this via wp-admin by hand, set this explicitly here.
1 parent fff52b7 commit c84413e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

sites.php

+8
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,14 @@ function jquery_default_site_options() {
391391
'permalink_structure' => '/%postname%/',
392392
'use_smilies' => 0,
393393

394+
'close_comments_days_old' => 14,
395+
'close_comments_for_old_posts' => 1,
396+
'comment_moderation' => 1,
397+
'comments_notify' => 0,
398+
'default_comment_status' => 'closed',
399+
'default_ping_status' => 'closed',
400+
'show_comments_cookies_opt_in' => 0,
401+
394402
// The one site where comments are sometimes enabled (blog.jquery.com)
395403
// has always had thread_comments turned off.
396404
//

0 commit comments

Comments
 (0)