From 9ed35cf90271ce36529b2ebe9efe1c2866e06f2b Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 5 Feb 2020 19:09:05 +0000 Subject: [PATCH] Posts, Post Types: Change "Featured Image" post label to use sentence case: "Featured image". This makes it more consistent with other UI elements in the block editor. Props mcsf. Fixes #49371. Built from https://develop.svn.wordpress.org/trunk@47194 git-svn-id: http://core.svn.wordpress.org/trunk@46994 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-form-advanced.php | 2 +- wp-admin/includes/post.php | 2 +- wp-includes/post.php | 4 ++-- wp-includes/version.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index 20b62af216..4a41ab6659 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -376,7 +376,7 @@ if ( 'post' == $post_type ) { if ( current_theme_supports( 'post-thumbnails' ) && post_type_supports( 'post', 'thumbnail' ) ) { $publish_box .= '
  • ' . sprintf( - /* translators: %s: Featured Image. */ + /* translators: %s: Featured image. */ __( '%s — This allows you to associate an image with your post without inserting it. This is usually useful only if your theme makes use of the image as a post thumbnail on the home page, a custom header, etc.' ), esc_html( $post_type_object->labels->featured_image ) ) . '
  • '; diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index 279a86567e..0ad9bcdaf0 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -1517,7 +1517,7 @@ function _wp_post_thumbnail_html( $thumbnail_id = null, $post = null ) { $size = isset( $_wp_additional_image_sizes['post-thumbnail'] ) ? 'post-thumbnail' : array( 266, 266 ); /** - * Filters the size used to display the post thumbnail image in the 'Featured Image' meta box. + * Filters the size used to display the post thumbnail image in the 'Featured image' meta box. * * Note: When a theme adds 'post-thumbnail' support, a special 'post-thumbnail' * image size is registered, which differs from the 'thumbnail' image size diff --git a/wp-includes/post.php b/wp-includes/post.php index 0e09610521..3b038c1163 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -1646,7 +1646,7 @@ function _post_type_meta_capabilities( $capabilities = null ) { * - `insert_into_item` - Label for the media frame button. Default is 'Insert into post' / 'Insert into page'. * - `uploaded_to_this_item` - Label for the media frame filter. Default is 'Uploaded to this post' / * 'Uploaded to this page'. - * - `featured_image` - Label for the Featured Image meta box title. Default is 'Featured Image'. + * - `featured_image` - Label for the featured image meta box title. Default is 'Featured image'. * - `set_featured_image` - Label for setting the featured image. Default is 'Set featured image'. * - `remove_featured_image` - Label for removing the featured image. Default is 'Remove featured image'. * - `use_featured_image` - Label in the media frame for using a featured image. Default is 'Use as featured image'. @@ -1704,7 +1704,7 @@ function get_post_type_labels( $post_type_object ) { 'attributes' => array( __( 'Post Attributes' ), __( 'Page Attributes' ) ), 'insert_into_item' => array( __( 'Insert into post' ), __( 'Insert into page' ) ), 'uploaded_to_this_item' => array( __( 'Uploaded to this post' ), __( 'Uploaded to this page' ) ), - 'featured_image' => array( _x( 'Featured Image', 'post' ), _x( 'Featured Image', 'page' ) ), + 'featured_image' => array( _x( 'Featured image', 'post' ), _x( 'Featured image', 'page' ) ), 'set_featured_image' => array( _x( 'Set featured image', 'post' ), _x( 'Set featured image', 'page' ) ), 'remove_featured_image' => array( _x( 'Remove featured image', 'post' ), _x( 'Remove featured image', 'page' ) ), 'use_featured_image' => array( _x( 'Use as featured image', 'post' ), _x( 'Use as featured image', 'page' ) ), diff --git a/wp-includes/version.php b/wp-includes/version.php index 87b6857d3e..4a8972e882 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.4-alpha-47193'; +$wp_version = '5.4-alpha-47194'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.