Changeset 43470 for branches/4.9
- Timestamp:
- 07/17/2018 09:29:08 AM (6 years ago)
- Location:
- branches/4.9
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
-
branches/4.9/src/wp-admin/includes/schema.php
r43268 r43470 520 520 // 4.9.6 521 521 'wp_page_for_privacy_policy' => 0, 522 523 // 4.9.8 524 'show_comments_cookies_opt_in' => 0, 522 525 ); 523 526 -
branches/4.9/src/wp-admin/options-discussion.php
r41704 r43470 78 78 </label> 79 79 <br /> 80 81 <label for="show_comments_cookies_opt_in"> 82 <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' ) ); ?> /> 83 <?php _e( 'Show comments cookies opt-in checkbox.' ); ?> 84 </label> 85 <br /> 86 80 87 <label for="thread_comments"> 81 88 <input name="thread_comments" type="checkbox" id="thread_comments" value="1" <?php checked('1', get_option('thread_comments')); ?> /> -
branches/4.9/src/wp-admin/options.php
r42811 r43470 82 82 83 83 $whitelist_options = array( 84 'general' => array( 'blogname', 'blogdescription', 'gmt_offset', 'date_format', 'time_format', 'start_of_week', 'timezone_string', 'WPLANG', 'new_admin_email' ), 85 'discussion' => array( 'default_pingback_flag', 'default_ping_status', 'default_comment_status', 'comments_notify', 'moderation_notify', 'comment_moderation', 'require_name_email', 'comment_whitelist', 'comment_max_links', 'moderation_keys', 'blacklist_keys', 'show_avatars', 'avatar_rating', 'avatar_default', 'close_comments_for_old_posts', 'close_comments_days_old', 'thread_comments', 'thread_comments_depth', 'page_comments', 'comments_per_page', 'default_comments_page', 'comment_order', 'comment_registration' ), 86 'media' => array( 'thumbnail_size_w', 'thumbnail_size_h', 'thumbnail_crop', 'medium_size_w', 'medium_size_h', 'large_size_w', 'large_size_h', 'image_default_size', 'image_default_align', 'image_default_link_type' ), 87 'reading' => array( 'posts_per_page', 'posts_per_rss', 'rss_use_excerpt', 'show_on_front', 'page_on_front', 'page_for_posts', 'blog_public' ), 88 'writing' => array( 'default_category', 'default_email_category', 'default_link_category', 'default_post_format' ) 84 'general' => array( 85 'blogname', 86 'blogdescription', 87 'gmt_offset', 88 'date_format', 89 'time_format', 90 'start_of_week', 91 'timezone_string', 92 'WPLANG', 93 'new_admin_email', 94 ), 95 'discussion' => array( 96 'default_pingback_flag', 97 'default_ping_status', 98 'default_comment_status', 99 'comments_notify', 100 'moderation_notify', 101 'comment_moderation', 102 'require_name_email', 103 'comment_whitelist', 104 'comment_max_links', 105 'moderation_keys', 106 'blacklist_keys', 107 'show_avatars', 108 'avatar_rating', 109 'avatar_default', 110 'close_comments_for_old_posts', 111 'close_comments_days_old', 112 'thread_comments', 113 'thread_comments_depth', 114 'page_comments', 115 'comments_per_page', 116 'default_comments_page', 117 'comment_order', 118 'comment_registration', 119 'show_comments_cookies_opt_in', 120 ), 121 'media' => array( 122 'thumbnail_size_w', 123 'thumbnail_size_h', 124 'thumbnail_crop', 125 'medium_size_w', 126 'medium_size_h', 127 'large_size_w', 128 'large_size_h', 129 'image_default_size', 130 'image_default_align', 131 'image_default_link_type', 132 ), 133 'reading' => array( 134 'posts_per_page', 135 'posts_per_rss', 136 'rss_use_excerpt', 137 'show_on_front', 138 'page_on_front', 139 'page_for_posts', 140 'blog_public', 141 ), 142 'writing' => array( 143 'default_category', 144 'default_email_category', 145 'default_link_category', 146 'default_post_format', 147 ), 89 148 ); 90 149 $whitelist_options['misc'] = $whitelist_options['options'] = $whitelist_options['privacy'] = array(); -
branches/4.9/src/wp-includes/comment-template.php
r43449 r43470 2206 2206 ); 2207 2207 2208 if ( has_action( 'set_comment_cookies', 'wp_set_comment_cookies' ) ) {2208 if ( has_action( 'set_comment_cookies', 'wp_set_comment_cookies' ) && get_option( 'show_comments_cookies_opt_in' ) ) { 2209 2209 $consent = empty( $commenter['comment_author_email'] ) ? '' : ' checked="checked"'; 2210 2210 $fields['cookies'] = '<p class="comment-form-cookies-consent"><input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes"' . $consent . ' />' .
Note: See TracChangeset
for help on using the changeset viewer.