Comments: Default the `show_comments_cookies_opt_in` checkbox to enabled.

This also updates the option label, to clarify that it needs to be enabled for comment cookies to work.

Props azaozz, pento, dhavalkasvala, desrosj, pputzer, mirkoschubert, ThemeZee.
Fixes #44736.


Built from https://develop.svn.wordpress.org/trunk@44683


git-svn-id: http://core.svn.wordpress.org/trunk@44514 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Gary Pendergast 2019-01-21 22:57:52 +00:00
parent 63a2dc94c6
commit 64877e74e8
3 changed files with 3 additions and 3 deletions

View File

@ -541,7 +541,7 @@ function populate_options( array $options = array() ) {
'wp_page_for_privacy_policy' => 0, 'wp_page_for_privacy_policy' => 0,
// 4.9.8 // 4.9.8
'show_comments_cookies_opt_in' => 0, 'show_comments_cookies_opt_in' => 1,
); );
// 3.3 // 3.3

View File

@ -88,7 +88,7 @@ printf(
<label for="show_comments_cookies_opt_in"> <label for="show_comments_cookies_opt_in">
<input name="show_comments_cookies_opt_in" type="checkbox" id="show_comments_cookies_opt_in" value="1" <?php checked( '1', get_option( 'show_comments_cookies_opt_in' ) ); ?> /> <input name="show_comments_cookies_opt_in" type="checkbox" id="show_comments_cookies_opt_in" value="1" <?php checked( '1', get_option( 'show_comments_cookies_opt_in' ) ); ?> />
<?php _e( 'Show comments cookies opt-in checkbox.' ); ?> <?php _e( 'Show comments cookies opt-in checkbox, allowing comment author cookies to be set.' ); ?>
</label> </label>
<br /> <br />

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.1-beta1-44682'; $wp_version = '5.1-beta1-44683';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.