diff --git a/src/wp-admin/includes/schema.php b/src/wp-admin/includes/schema.php
index a41f9b5e5b..4be5d5399a 100644
--- a/src/wp-admin/includes/schema.php
+++ b/src/wp-admin/includes/schema.php
@@ -535,9 +535,6 @@ function populate_options() {
// 4.9.6
'wp_page_for_privacy_policy' => 0,
-
- // 4.9.8
- 'show_comments_cookies_opt_in' => 0,
);
// 3.3
diff --git a/src/wp-admin/options-discussion.php b/src/wp-admin/options-discussion.php
index 48fb552bb8..c98c441103 100644
--- a/src/wp-admin/options-discussion.php
+++ b/src/wp-admin/options-discussion.php
@@ -85,13 +85,6 @@ printf(
?>
-
-
-
-
',
);
- if ( has_action( 'set_comment_cookies', 'wp_set_comment_cookies' ) && get_option( 'show_comments_cookies_opt_in' ) ) {
+ if ( has_action( 'set_comment_cookies', 'wp_set_comment_cookies' ) ) {
$consent = empty( $commenter['comment_author_email'] ) ? '' : ' checked="checked"';
$fields['cookies'] = '';
diff --git a/tests/phpunit/tests/comment/commentForm.php b/tests/phpunit/tests/comment/commentForm.php
index 0fabd97a6a..45f83a4d17 100644
--- a/tests/phpunit/tests/comment/commentForm.php
+++ b/tests/phpunit/tests/comment/commentForm.php
@@ -87,8 +87,6 @@ class Tests_Comment_CommentForm extends WP_UnitTestCase {
public function test_fields_should_include_cookies_consent() {
$p = self::factory()->post->create();
- add_filter( 'option_show_comments_cookies_opt_in', '__return_true' );
-
$args = array(
'fields' => array(
'author' => 'Hello World!',
@@ -96,8 +94,6 @@ class Tests_Comment_CommentForm extends WP_UnitTestCase {
);
$form = get_echo( 'comment_form', array( $args, $p ) );
- remove_filter( 'option_show_comments_cookies_opt_in', '__return_true' );
-
$this->assertRegExp( '||', $form );
}
}