Make WordPress Core


Ignore:
Timestamp:
11/12/2020 07:28:35 PM (3 years ago)
Author:
desrosj
Message:

Twenty Twenty-One: Use consistent casing in strings.

This converts strings using Title Case to sentence case, which is currently preferred for consistency (see discussions on #40244).

Also included is the replacement of an escaped apostrophe with ’, which is also preferred per the Internationalization guidelines.

See #51526.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentyone/functions.php

    r49574 r49578  
    7474        register_nav_menus(
    7575            array(
    76                 'primary' => esc_html__( 'Primary Menu', 'twentytwentyone' ),
    77                 'footer'  => __( 'Secondary Menu', 'twentytwentyone' ),
     76                'primary' => esc_html__( 'Primary menu', 'twentytwentyone' ),
     77                'footer'  => __( 'Secondary menu', 'twentytwentyone' ),
    7878            )
    7979        );
     
    172172                ),
    173173                array(
    174                     'name'      => esc_html__( 'Extra Large', 'twentytwentyone' ),
     174                    'name'      => esc_html__( 'Extra large', 'twentytwentyone' ),
    175175                    'shortName' => esc_html_x( 'XL', 'Font size', 'twentytwentyone' ),
    176176                    'size'      => 40,
     
    221221                ),
    222222                array(
    223                     'name'  => esc_html__( 'Dark Gray', 'twentytwentyone' ),
     223                    'name'  => esc_html__( 'Dark gray', 'twentytwentyone' ),
    224224                    'slug'  => 'dark-gray',
    225225                    'color' => $dark_gray,
     
    272272            array(
    273273                array(
    274                     'name'     => esc_html__( 'Purple to Yellow', 'twentytwentyone' ),
     274                    'name'     => esc_html__( 'Purple to yellow', 'twentytwentyone' ),
    275275                    'gradient' => 'linear-gradient(160deg, ' . $purple . ', ' . $yellow . ')',
    276276                    'slug'     => 'purple-to-yellow',
    277277                ),
    278278                array(
    279                     'name'     => esc_html__( 'Yellow to Purple', 'twentytwentyone' ),
     279                    'name'     => esc_html__( 'Yellow to purple', 'twentytwentyone' ),
    280280                    'gradient' => 'linear-gradient(160deg, ' . $yellow . ', ' . $purple . ')',
    281281                    'slug'     => 'yellow-to-purple',
    282282                ),
    283283                array(
    284                     'name'     => esc_html__( 'Green to Yellow', 'twentytwentyone' ),
     284                    'name'     => esc_html__( 'Green to yellow', 'twentytwentyone' ),
    285285                    'gradient' => 'linear-gradient(160deg, ' . $green . ', ' . $yellow . ')',
    286286                    'slug'     => 'green-to-yellow',
    287287                ),
    288288                array(
    289                     'name'     => esc_html__( 'Yellow to Green', 'twentytwentyone' ),
     289                    'name'     => esc_html__( 'Yellow to green', 'twentytwentyone' ),
    290290                    'gradient' => 'linear-gradient(160deg, ' . $yellow . ', ' . $green . ')',
    291291                    'slug'     => 'yellow-to-green',
    292292                ),
    293293                array(
    294                     'name'     => esc_html__( 'Red to Yellow', 'twentytwentyone' ),
     294                    'name'     => esc_html__( 'Red to yellow', 'twentytwentyone' ),
    295295                    'gradient' => 'linear-gradient(160deg, ' . $red . ', ' . $yellow . ')',
    296296                    'slug'     => 'red-to-yellow',
    297297                ),
    298298                array(
    299                     'name'     => esc_html__( 'Yellow to Red', 'twentytwentyone' ),
     299                    'name'     => esc_html__( 'Yellow to red', 'twentytwentyone' ),
    300300                    'gradient' => 'linear-gradient(160deg, ' . $yellow . ', ' . $red . ')',
    301301                    'slug'     => 'yellow-to-red',
    302302                ),
    303303                array(
    304                     'name'     => esc_html__( 'Purple to Red', 'twentytwentyone' ),
     304                    'name'     => esc_html__( 'Purple to red', 'twentytwentyone' ),
    305305                    'gradient' => 'linear-gradient(160deg, ' . $purple . ', ' . $red . ')',
    306306                    'slug'     => 'purple-to-red',
    307307                ),
    308308                array(
    309                     'name'     => esc_html__( 'Red to Purple', 'twentytwentyone' ),
     309                    'name'     => esc_html__( 'Red to purple', 'twentytwentyone' ),
    310310                    'gradient' => 'linear-gradient(160deg, ' . $red . ', ' . $purple . ')',
    311311                    'slug'     => 'red-to-purple',
Note: See TracChangeset for help on using the changeset viewer.