From 493d73f5c0bbdcca1b040829acfe71916c4b4820 Mon Sep 17 00:00:00 2001 From: youknowriad Date: Thu, 25 Jan 2024 12:48:16 +0000 Subject: [PATCH] Editor: Add video and audio pattern categories. More categories, better organization for patterns as they grow and power more WordPress websites. Props aaronrobertshaw, get_dave. Fixes #60342. Built from https://develop.svn.wordpress.org/trunk@57353 git-svn-id: http://core.svn.wordpress.org/trunk@56859 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/block-patterns.php | 14 ++++++++++++++ wp-includes/version.php | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/wp-includes/block-patterns.php b/wp-includes/block-patterns.php index 66bdfd68e7..e5c770e1d4 100644 --- a/wp-includes/block-patterns.php +++ b/wp-includes/block-patterns.php @@ -135,6 +135,20 @@ function _register_core_block_patterns_and_categories() { 'description' => __( 'Different layouts containing video or audio.' ), ) ); + register_block_pattern_category( + 'videos', + array( + 'label' => _x( 'Videos', 'Block pattern category' ), + 'description' => __( 'Different layouts containing videos.' ), + ) + ); + register_block_pattern_category( + 'audio', + array( + 'label' => _x( 'Audio', 'Block pattern category' ), + 'description' => __( 'Different layouts containing audio.' ), + ) + ); register_block_pattern_category( 'posts', array( diff --git a/wp-includes/version.php b/wp-includes/version.php index 3c34b59e61..79bbdcfc2a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.5-alpha-57352'; +$wp_version = '6.5-alpha-57353'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.