WordPress.org

Make WordPress Core

Ticket #43389: 43389.diff

File 43389.diff, 2.5 KB (added by allendav, 3 years ago)
  • src/wp-admin/options-reading.php

     
    123123<?php endif; ?>
    124124</fieldset></td>
    125125</tr>
     126<tr>
     127<th scope="row"><?php _e( 'Privacy policy page' ); ?></th>
     128<td id="front-static-pages"><fieldset><legend class="screen-reader-text"><span><?php _e( 'Privacy policy page' ); ?></span></legend>
     129<label for="page_for_privacy_policy">
     130<?php wp_dropdown_pages(
     131        array(
     132                'name'              => 'page_for_privacy_policy',
     133                'show_option_none'  => __( '&mdash; Select &mdash;' ),
     134                'option_none_value' => '0',
     135                'selected'          => get_option( 'page_for_privacy_policy' ),
     136        )
     137);
     138?>
     139</label>
     140</fieldset></td>
     141</tr>
    126142<?php endif; ?>
    127143<tr>
    128144<th scope="row"><label for="posts_per_page"><?php _e( 'Blog pages show at most' ); ?></label></th>
  • src/wp-admin/options.php

     
    8484        'general'    => array( 'blogname', 'blogdescription', 'gmt_offset', 'date_format', 'time_format', 'start_of_week', 'timezone_string', 'WPLANG', 'new_admin_email' ),
    8585        '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' ),
    8686        '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' ),
     87        'reading'    => array( 'posts_per_page', 'posts_per_rss', 'rss_use_excerpt', 'show_on_front', 'page_on_front', 'page_for_posts', 'page_for_privacy_policy', 'blog_public' ),
    8888        'writing'    => array( 'default_category', 'default_email_category', 'default_link_category', 'default_post_format' ),
    8989);
    9090$whitelist_options['misc'] = $whitelist_options['options'] = $whitelist_options['privacy'] = array();