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/inc/block-patterns.php

    r49574 r49578  
    3131        'twentytwentyone/large-text',
    3232        array(
    33             'title'         => esc_html__( 'Large Text', 'twentytwentyone' ),
     33            'title'         => esc_html__( 'Large text', 'twentytwentyone' ),
    3434            'categories'    => array( 'twentytwentyone' ),
    3535            'viewportWidth' => 1440,
     
    4242        'twentytwentyone/links-area',
    4343        array(
    44             'title'         => esc_html__( 'Links Area', 'twentytwentyone' ),
     44            'title'         => esc_html__( 'Links area', 'twentytwentyone' ),
    4545            'categories'    => array( 'twentytwentyone' ),
    4646            'viewportWidth' => 1440,
     
    5454        'twentytwentyone/media-text-article-title',
    5555        array(
    56             'title'         => esc_html__( 'Media and Text Article Title', 'twentytwentyone' ),
     56            'title'         => esc_html__( 'Media and text article title', 'twentytwentyone' ),
    5757            'categories'    => array( 'twentytwentyone' ),
    5858            'viewportWidth' => 1440,
     
    6666        'twentytwentyone/overlapping-images',
    6767        array(
    68             'title'         => esc_html__( 'Overlapping Images', 'twentytwentyone' ),
     68            'title'         => esc_html__( 'Overlapping images', 'twentytwentyone' ),
    6969            'categories'    => array( 'twentytwentyone' ),
    7070            'viewportWidth' => 1024,
     
    7878        'twentytwentyone/two-images-showcase',
    7979        array(
    80             'title'         => esc_html__( 'Two Images Showcase', 'twentytwentyone' ),
     80            'title'         => esc_html__( 'Two mages showcase', 'twentytwentyone' ),
    8181            'categories'    => array( 'twentytwentyone' ),
    8282            'viewportWidth' => 1440,
    83             'description'   => esc_html_x( 'A Media & Text block with a big image on the left and a smaller one with bordered frame on the right.', 'Block pattern description', 'twentytwentyone' ),
     83            'description'   => esc_html_x( 'A media & text block with a big image on the left and a smaller one with bordered frame on the right.', 'Block pattern description', 'twentytwentyone' ),
    8484            'content'       => '<!-- wp:media-text {"mediaId":1747,"mediaLink":"' . esc_url( get_template_directory_uri() ) . '/assets/images/Daffodils.jpg","mediaType":"image"} --><div class="wp-block-media-text alignwide is-stacked-on-mobile"><figure class="wp-block-media-text__media"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/Daffodils.jpg" alt="' . esc_attr__( '&#8220;Daffodils&#8221; by Berthe Morisot', 'twentytwentyone' ) . '" size-full"/></figure><div class="wp-block-media-text__content"><!-- wp:image {"align":"center","width":400,"height":512,"sizeSlug":"large","className":"is-style-twentytwentyone-image-frame"} --><figure class="wp-block-image aligncenter size-large is-resized is-style-twentytwentyone-image-frame"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/self-portrait-1885.jpg" alt="' . esc_attr__( '&#8220;Self portrait&#8221; by Berthe Morisot', 'twentytwentyone' ) . '" width="400" height="512"/></figure><!-- /wp:image --></div></div><!-- /wp:media-text -->',
    8585        )
     
    9090        'twentytwentyone/overlapping-images-and-text',
    9191        array(
    92             'title'         => esc_html__( 'Overlapping Images and Text', 'twentytwentyone' ),
     92            'title'         => esc_html__( 'Overlapping images and text', 'twentytwentyone' ),
    9393            'categories'    => array( 'twentytwentyone' ),
    9494            'viewportWidth' => 1440,
     
    102102        'twentytwentyone/portfolio-list',
    103103        array(
    104             'title'       => esc_html__( 'Portfolio List', 'twentytwentyone' ),
     104            'title'       => esc_html__( 'Portfolio list', 'twentytwentyone' ),
    105105            'categories'  => array( 'twentytwentyone' ),
    106106            'description' => esc_html_x( 'A list of projects with thumbnail images.', 'Block pattern description', 'twentytwentyone' ),
     
    112112        'twentytwentyone/contact-information',
    113113        array(
    114             'title'       => esc_html__( 'Contact Information', 'twentytwentyone' ),
     114            'title'       => esc_html__( 'Contact information', 'twentytwentyone' ),
    115115            'categories'  => array( 'twentytwentyone' ),
    116116            'description' => esc_html_x( 'A block with 3 columns that display contact information and social media links.', 'Block pattern description', 'twentytwentyone' ),
Note: See TracChangeset for help on using the changeset viewer.