Twenty Twenty-Two: Remove color reference from pattern names.

This changeset removes color names from pattern names to make them less opinionated, and avoid mismatching when the user changes related colors. It does not update filenames for now, as they are not directly exposed to end users.

Props poena, mukesh27.
Fixes #56720.

Built from https://develop.svn.wordpress.org/trunk@55122


git-svn-id: http://core.svn.wordpress.org/trunk@54655 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
audrasjb 2023-01-24 08:51:12 +00:00
parent 0939d89ded
commit 215de3c5f3
8 changed files with 8 additions and 8 deletions

View File

@ -3,7 +3,7 @@
* Header with centered logo and black background
*/
return array(
'title' => __( 'Header with centered logo and black background', 'twentytwentytwo' ),
'title' => __( 'Header with centered logo and background', 'twentytwentytwo' ),
'categories' => array( 'header' ),
'blockTypes' => array( 'core/template-part/header' ),
'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"bottom":"var(--wp--custom--spacing--small, 1.25rem)","top":"var(--wp--custom--spacing--small, 1.25rem)"}},"elements":{"link":{"color":{"text":"var:preset|color|background"}}}},"backgroundColor":"foreground","textColor":"background","layout":{"type":"flex","justifyContent":"center"}} -->

View File

@ -3,7 +3,7 @@
* Centered header with navigation, social links, and salmon background block pattern
*/
return array(
'title' => __( 'Centered header with navigation, social links, and salmon background', 'twentytwentytwo' ),
'title' => __( 'Centered header with navigation, social links, and background', 'twentytwentytwo' ),
'categories' => array( 'header' ),
'blockTypes' => array( 'core/template-part/header' ),
'content' => '<!-- wp:group {"align":"full","style":{"elements":{"link":{"color":{"text":"var:preset|color|primary"}}},"spacing":{"padding":{"top":"var(--wp--custom--spacing--small, 1.25rem)","bottom":"var(--wp--custom--spacing--small, 1.25rem)"}}},"backgroundColor":"secondary","textColor":"primary","layout":{"inherit":true}} -->

View File

@ -3,7 +3,7 @@
* Logo and navigation header with gray background
*/
return array(
'title' => __( 'Logo and navigation header with gray background', 'twentytwentytwo' ),
'title' => __( 'Logo and navigation header with background', 'twentytwentytwo' ),
'categories' => array( 'header' ),
'blockTypes' => array( 'core/template-part/header' ),
'content' => '<!-- wp:group {"align":"full","style":{"elements":{"link":{"color":{"text":"var:preset|color|foreground"}}},"spacing":{"padding":{"top":"var(--wp--custom--spacing--small, 1.25rem)","bottom":"var(--wp--custom--spacing--small, 1.25rem)"}}},"backgroundColor":"tertiary","textColor":"foreground","layout":{"inherit":true}} -->

View File

@ -3,7 +3,7 @@
* Logo, navigation, and social links header with black background block pattern
*/
return array(
'title' => __( 'Logo, navigation, and social links header with black background', 'twentytwentytwo' ),
'title' => __( 'Logo, navigation, and social links header with background', 'twentytwentytwo' ),
'categories' => array( 'header' ),
'blockTypes' => array( 'core/template-part/header' ),
'content' => '<!-- wp:group {"align":"full","style":{"elements":{"link":{"color":{"text":"var:preset|color|background"}}},"spacing":{"padding":{"top":"var(--wp--custom--spacing--small, 1.25rem)","bottom":"var(--wp--custom--spacing--small, 1.25rem)"}}},"backgroundColor":"foreground","textColor":"background","layout":{"inherit":true}} -->

View File

@ -3,7 +3,7 @@
* Text-only header with green background block pattern
*/
return array(
'title' => __( 'Text-only header with green background', 'twentytwentytwo' ),
'title' => __( 'Text-only header with background', 'twentytwentytwo' ),
'categories' => array( 'header' ),
'blockTypes' => array( 'core/template-part/header' ),
'content' => '<!-- wp:group {"align":"full","style":{"elements":{"link":{"color":{"text":"var:preset|color|background"}}},"spacing":{"padding":{"top":"var(--wp--custom--spacing--small, 1.25rem)","bottom":"var(--wp--custom--spacing--small, 1.25rem)"}}},"backgroundColor":"primary","textColor":"background","layout":{"inherit":true}} -->

View File

@ -3,7 +3,7 @@
* Text-only header with salmon background block pattern
*/
return array(
'title' => __( 'Text-only header with salmon background', 'twentytwentytwo' ),
'title' => __( 'Text-only header with background', 'twentytwentytwo' ),
'categories' => array( 'header' ),
'blockTypes' => array( 'core/template-part/header' ),
'content' => '<!-- wp:group {"align":"full","style":{"elements":{"link":{"color":{"text":"var:preset|color|foreground"}}},"spacing":{"padding":{"top":"var(--wp--custom--spacing--small, 1.25rem)","bottom":"var(--wp--custom--spacing--small, 1.25rem)"}}},"backgroundColor":"secondary","textColor":"foreground","layout":{"inherit":true}} -->

View File

@ -3,7 +3,7 @@
* Text-only header with tagline and black background block pattern
*/
return array(
'title' => __( 'Text-only header with tagline and black background', 'twentytwentytwo' ),
'title' => __( 'Text-only header with tagline and background', 'twentytwentytwo' ),
'categories' => array( 'header' ),
'blockTypes' => array( 'core/template-part/header' ),
'content' => '<!-- wp:group {"align":"full","style":{"elements":{"link":{"color":{"text":"var:preset|color|secondary"}}},"spacing":{"padding":{"top":"var(--wp--custom--spacing--small, 1.25rem)","bottom":"var(--wp--custom--spacing--small, 1.25rem)"}}},"backgroundColor":"foreground","textColor":"secondary","layout":{"inherit":true}} -->

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.2-alpha-55121';
$wp_version = '6.2-alpha-55122';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.