Make WordPress Core

Ticket #57226: 57226.diff

File 57226.diff, 13.5 KB (added by nithi22, 17 months ago)

Patch that will convert all the settings labels to Title Case.

  • src/wp-admin/options-discussion.php

    diff --git a/src/wp-admin/options-discussion.php b/src/wp-admin/options-discussion.php
    index 2e3f83189c..4488338bd0 100644
    a b require_once ABSPATH . 'wp-admin/admin-header.php'; 
    4444
    4545<table class="form-table" role="presentation">
    4646<tr>
    47 <th scope="row"><?php _e( 'Default post settings' ); ?></th>
    48 <td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Default post settings' ); ?></span></legend>
     47<th scope="row"><?php _e( 'Default Post Settings' ); ?></th>
     48<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Default Post Settings' ); ?></span></legend>
    4949<label for="default_pingback_flag">
    5050<input name="default_pingback_flag" type="checkbox" id="default_pingback_flag" value="1" <?php checked( '1', get_option( 'default_pingback_flag' ) ); ?> />
    5151<?php _e( 'Attempt to notify any blogs linked to from the post' ); ?></label>
    require_once ABSPATH . 'wp-admin/admin-header.php'; 
    6262</fieldset></td>
    6363</tr>
    6464<tr>
    65 <th scope="row"><?php _e( 'Other comment settings' ); ?></th>
    66 <td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Other comment settings' ); ?></span></legend>
     65<th scope="row"><?php _e( 'Other Comment Settings' ); ?></th>
     66<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Other Comment Settings' ); ?></span></legend>
    6767<label for="require_name_email"><input type="checkbox" name="require_name_email" id="require_name_email" value="1" <?php checked( '1', get_option( 'require_name_email' ) ); ?> /> <?php _e( 'Comment author must fill out name and email' ); ?></label>
    6868<br />
    6969<label for="comment_registration">
    printf( __( 'Comments should be displayed with the %s comments at the top of eac 
    165165</fieldset></td>
    166166</tr>
    167167<tr>
    168 <th scope="row"><?php _e( 'Email me whenever' ); ?></th>
    169 <td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Email me whenever' ); ?></span></legend>
     168<th scope="row"><?php _e( 'Email Me Whenever' ); ?></th>
     169<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Email Me Whenever' ); ?></span></legend>
    170170<label for="comments_notify">
    171171<input name="comments_notify" type="checkbox" id="comments_notify" value="1" <?php checked( '1', get_option( 'comments_notify' ) ); ?> />
    172172<?php _e( 'Anyone posts a comment' ); ?> </label>
    printf( __( 'Comments should be displayed with the %s comments at the top of eac 
    177177</fieldset></td>
    178178</tr>
    179179<tr>
    180 <th scope="row"><?php _e( 'Before a comment appears' ); ?></th>
    181 <td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Before a comment appears' ); ?></span></legend>
     180<th scope="row"><?php _e( 'Before a Comment Appears' ); ?></th>
     181<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Before a Comment Appears' ); ?></span></legend>
    182182<label for="comment_moderation">
    183183<input name="comment_moderation" type="checkbox" id="comment_moderation" value="1" <?php checked( '1', get_option( 'comment_moderation' ) ); ?> />
    184184<?php _e( 'Comment must be manually approved' ); ?> </label>
  • src/wp-admin/options-general.php

    diff --git a/src/wp-admin/options-general.php b/src/wp-admin/options-general.php
    index ba9b155303..6bde774336 100644
    a b foreach ( $time_formats as $format ) { 
    389389</td>
    390390</tr>
    391391<tr>
    392 <th scope="row"><label for="start_of_week"><?php _e( 'Week Starts On' ); ?></label></th>
     392<th scope="row"><label for="start_of_week"><?php _e( 'Week Starts on' ); ?></label></th>
    393393<td><select name="start_of_week" id="start_of_week">
    394394<?php
    395395/**
  • src/wp-admin/options-media.php

    diff --git a/src/wp-admin/options-media.php b/src/wp-admin/options-media.php
    index 79f4389e88..bbef394095 100644
    a b require_once ABSPATH . 'wp-admin/admin-header.php'; 
    5252<form action="options.php" method="post">
    5353<?php settings_fields( 'media' ); ?>
    5454
    55 <h2 class="title"><?php _e( 'Image sizes' ); ?></h2>
     55<h2 class="title"><?php _e( 'Image Sizes' ); ?></h2>
    5656<p><?php _e( 'The sizes listed below determine the maximum dimensions in pixels to use when adding an image to the Media Library.' ); ?></p>
    5757
    5858<table class="form-table" role="presentation">
    5959<tr>
    60 <th scope="row"><?php _e( 'Thumbnail size' ); ?></th>
    61 <td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Thumbnail size' ); ?></span></legend>
     60<th scope="row"><?php _e( 'Thumbnail Size' ); ?></th>
     61<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Thumbnail Size' ); ?></span></legend>
    6262<label for="thumbnail_size_w"><?php _e( 'Width' ); ?></label>
    6363<input name="thumbnail_size_w" type="number" step="1" min="0" id="thumbnail_size_w" value="<?php form_option( 'thumbnail_size_w' ); ?>" class="small-text" />
    6464<br />
    require_once ABSPATH . 'wp-admin/admin-header.php'; 
    7171</tr>
    7272
    7373<tr>
    74 <th scope="row"><?php _e( 'Medium size' ); ?></th>
    75 <td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Medium size' ); ?></span></legend>
     74<th scope="row"><?php _e( 'Medium Size' ); ?></th>
     75<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Medium Size' ); ?></span></legend>
    7676<label for="medium_size_w"><?php _e( 'Max Width' ); ?></label>
    7777<input name="medium_size_w" type="number" step="1" min="0" id="medium_size_w" value="<?php form_option( 'medium_size_w' ); ?>" class="small-text" />
    7878<br />
    require_once ABSPATH . 'wp-admin/admin-header.php'; 
    8282</tr>
    8383
    8484<tr>
    85 <th scope="row"><?php _e( 'Large size' ); ?></th>
    86 <td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Large size' ); ?></span></legend>
     85<th scope="row"><?php _e( 'Large Size' ); ?></th>
     86<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Large Size' ); ?></span></legend>
    8787<label for="large_size_w"><?php _e( 'Max Width' ); ?></label>
    8888<input name="large_size_w" type="number" step="1" min="0" id="large_size_w" value="<?php form_option( 'large_size_w' ); ?>" class="small-text" />
    8989<br />
  • src/wp-admin/options-permalink.php

    diff --git a/src/wp-admin/options-permalink.php b/src/wp-admin/options-permalink.php
    index e3eeb83c42..f16bee7e12 100644
    a b printf( 
    327327<table class="form-table permalink-structure" role="presentation">
    328328<tbody>
    329329<tr>
    330         <th scope="row"><?php _e( 'Permalink structure' ); ?></th>
     330        <th scope="row"><?php _e( 'Permalink Structure' ); ?></th>
    331331        <td>
    332332                <fieldset class="structure-selection">
    333                         <legend class="screen-reader-text"><?php _e( 'Permalink structure' ); ?></legend>
     333                        <legend class="screen-reader-text"><?php _e( 'Permalink Structure' ); ?></legend>
    334334                        <?php foreach ( $default_structures as $input ) : ?>
    335335                        <div class="row">
    336336                                <input id="permalink-input-<?php echo $input['id']; ?>"
    printf( 
    412412        <tr>
    413413                <th>
    414414                        <label for="category_base">
    415                                 <?php /* translators: Prefix for category permalinks. */ _e( 'Category base' ); ?>
     415                                <?php /* translators: Prefix for category permalinks. */ _e( 'Category Base' ); ?>
    416416                        </label>
    417417                </th>
    418418                <td>
    printf( 
    424424        </tr>
    425425        <tr>
    426426                <th>
    427                         <label for="tag_base"><?php _e( 'Tag base' ); ?></label>
     427                        <label for="tag_base"><?php _e( 'Tag Base' ); ?></label>
    428428                </th>
    429429                <td>
    430430                        <?php echo $blog_prefix; ?>
  • src/wp-admin/options-privacy.php

    diff --git a/src/wp-admin/options-privacy.php b/src/wp-admin/options-privacy.php
    index 008ea30fcf..418a70b0e8 100644
    a b require_once ABSPATH . 'wp-admin/admin-header.php'; 
    253253                                <label for="create-page">
    254254                                <?php
    255255                                if ( $has_pages ) {
    256                                         _e( 'Create a new Privacy Policy Page' );
     256                                        _e( 'Create a New Privacy Policy Page' );
    257257                                } else {
    258258                                        _e( 'There are no pages.' );
    259259                                }
    require_once ABSPATH . 'wp-admin/admin-header.php'; 
    276276                                <label for="page_for_privacy_policy">
    277277                                        <?php
    278278                                        if ( $privacy_policy_page_exists ) {
    279                                                 _e( 'Change your Privacy Policy page' );
     279                                                _e( 'Change Your Privacy Policy Page' );
    280280                                        } else {
    281281                                                _e( 'Select a Privacy Policy page' );
    282282                                        }
  • src/wp-admin/options-reading.php

    diff --git a/src/wp-admin/options-reading.php b/src/wp-admin/options-reading.php
    index 929c528a0e..0200129ae7 100644
    a b get_current_screen()->add_help_tab( 
    4141get_current_screen()->add_help_tab(
    4242        array(
    4343                'id'      => 'site-visibility',
    44                 'title'   => has_action( 'blog_privacy_selector' ) ? __( 'Site visibility' ) : __( 'Search engine visibility' ),
     44                'title'   => has_action( 'blog_privacy_selector' ) ? __( 'Site visibility' ) : __( 'Search Engine Visibility' ),
    4545                'content' => '<p>' . __( 'You can choose whether or not your site will be crawled by robots, ping services, and spiders. If you want those services to ignore your site, click the checkbox next to &#8220;Discourage search engines from indexing this site&#8221; and click the Save Changes button at the bottom of the screen.' ) . '</p>' .
    4646                        '<p>' . __( 'Note that even when set to discourage search engines, your site is still visible on the web and not all search engines adhere to this directive.' ) . '</p>' .
    4747                        '<p>' . __( 'When this setting is in effect, a reminder is shown in the At a Glance box of the Dashboard that says, &#8220;Search engines discouraged&#8221;, to remind you that you have directed search engines to not crawl your site.' ) . '</p>',
    else : 
    8484        ?>
    8585<table class="form-table" role="presentation">
    8686<tr>
    87 <th scope="row"><?php _e( 'Your homepage displays' ); ?></th>
    88 <td id="front-static-pages"><fieldset><legend class="screen-reader-text"><span><?php _e( 'Your homepage displays' ); ?></span></legend>
     87<th scope="row"><?php _e( 'Your Homepage Displays' ); ?></th>
     88<td id="front-static-pages"><fieldset><legend class="screen-reader-text"><span><?php _e( 'Your Homepage Displays' ); ?></span></legend>
    8989        <p><label>
    9090                <input name="show_on_front" type="radio" value="posts" class="tog" <?php checked( 'posts', get_option( 'show_on_front' ) ); ?> />
    9191                <?php _e( 'Your latest posts' ); ?>
    else : 
    148148</tr>
    149149<?php endif; ?>
    150150<tr>
    151 <th scope="row"><label for="posts_per_page"><?php _e( 'Blog pages show at most' ); ?></label></th>
     151<th scope="row"><label for="posts_per_page"><?php _e( 'Blog Pages Show at Most' ); ?></label></th>
    152152<td>
    153153<input name="posts_per_page" type="number" step="1" min="1" id="posts_per_page" value="<?php form_option( 'posts_per_page' ); ?>" class="small-text" /> <?php _e( 'posts' ); ?>
    154154</td>
    155155</tr>
    156156<tr>
    157 <th scope="row"><label for="posts_per_rss"><?php _e( 'Syndication feeds show the most recent' ); ?></label></th>
     157<th scope="row"><label for="posts_per_rss"><?php _e( 'Syndication Feeds Show the Most Recent' ); ?></label></th>
    158158<td><input name="posts_per_rss" type="number" step="1" min="1" id="posts_per_rss" value="<?php form_option( 'posts_per_rss' ); ?>" class="small-text" /> <?php _e( 'items' ); ?></td>
    159159</tr>
    160160<tr>
    161 <th scope="row"><?php _e( 'For each post in a feed, include' ); ?> </th>
    162 <td><fieldset><legend class="screen-reader-text"><span><?php _e( 'For each post in a feed, include' ); ?> </span></legend>
     161<th scope="row"><?php _e( 'For Each Post in a Feed, Include' ); ?> </th>
     162<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'For Each Post in a Feed, Include' ); ?> </span></legend>
    163163        <p>
    164164                <label><input name="rss_use_excerpt" type="radio" value="0" <?php checked( 0, get_option( 'rss_use_excerpt' ) ); ?>     /> <?php _e( 'Full text' ); ?></label><br />
    165165                <label><input name="rss_use_excerpt" type="radio" value="1" <?php checked( 1, get_option( 'rss_use_excerpt' ) ); ?> /> <?php _e( 'Excerpt' ); ?></label>
    else : 
    177177</tr>
    178178
    179179<tr class="option-site-visibility">
    180 <th scope="row"><?php has_action( 'blog_privacy_selector' ) ? _e( 'Site visibility' ) : _e( 'Search engine visibility' ); ?> </th>
    181 <td><fieldset><legend class="screen-reader-text"><span><?php has_action( 'blog_privacy_selector' ) ? _e( 'Site visibility' ) : _e( 'Search engine visibility' ); ?> </span></legend>
     180<th scope="row"><?php has_action( 'blog_privacy_selector' ) ? _e( 'Site visibility' ) : _e( 'Search Engine Visibility' ); ?> </th>
     181<td><fieldset><legend class="screen-reader-text"><span><?php has_action( 'blog_privacy_selector' ) ? _e( 'Site visibility' ) : _e( 'Search Engine Visibility' ); ?> </span></legend>
    182182<?php if ( has_action( 'blog_privacy_selector' ) ) : ?>
    183183        <input id="blog-public" type="radio" name="blog_public" value="1" <?php checked( '1', get_option( 'blog_public' ) ); ?> />
    184184        <label for="blog-public"><?php _e( 'Allow search engines to index this site' ); ?></label><br />
    else : 
    195195         * 1. Disable the single checkbox in favor of a multiple-choice list of radio buttons.
    196196         * 2. Open the door to adding additional radio button choices to the list.
    197197         *
    198          * Hooking to this action also converts the 'Search engine visibility' heading to the more
     198         * Hooking to this action also converts the 'Search Engine Visibility' heading to the more
    199199         * open-ended 'Site visibility' heading.
    200200         *
    201201         * @since 2.1.0
  • src/wp-admin/options-writing.php

    diff --git a/src/wp-admin/options-writing.php b/src/wp-admin/options-writing.php
    index e33c1df4f9..1f6c0ccc36 100644
    a b do_settings_fields( 'writing', 'remote_publishing' ); // A deprecated section. 
    138138/** This filter is documented in wp-admin/options.php */
    139139if ( apply_filters( 'enable_post_by_email_configuration', true ) ) {
    140140        ?>
    141 <h2 class="title"><?php _e( 'Post via email' ); ?></h2>
     141<h2 class="title"><?php _e( 'Post via Email' ); ?></h2>
    142142<p>
    143143        <?php
    144144        printf(