From da8fd1d07946516a2531a6abab7cf9f066209674 Mon Sep 17 00:00:00 2001 From: Joe McGill Date: Fri, 7 Feb 2025 16:06:20 +0000 Subject: [PATCH] Editor: Add remaining query block file. This is a follow-up to [59776] and [59775] to add yet another file that was missed in the original commit. See #62887. Built from https://develop.svn.wordpress.org/trunk@59777 git-svn-id: http://core.svn.wordpress.org/trunk@59119 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/blocks/blocks-json.php | 66 ++++++++++++++++++++++++++++++ wp-includes/version.php | 2 +- 2 files changed, 67 insertions(+), 1 deletion(-) diff --git a/wp-includes/blocks/blocks-json.php b/wp-includes/blocks/blocks-json.php index 2691e01c71..4fd10f0b63 100644 --- a/wp-includes/blocks/blocks-json.php +++ b/wp-includes/blocks/blocks-json.php @@ -5625,6 +5625,72 @@ ), 'style' => 'wp-block-query-title' ), + 'query-total' => array( + '$schema' => 'https://schemas.wp.org/trunk/block.json', + 'apiVersion' => 3, + 'name' => 'core/query-total', + 'title' => 'Query Total', + 'category' => 'theme', + 'ancestor' => array( + 'core/query' + ), + 'description' => 'Display the total number of results in a query.', + 'textdomain' => 'default', + 'attributes' => array( + 'displayType' => array( + 'type' => 'string', + 'default' => 'total-results' + ) + ), + 'usesContext' => array( + 'queryId', + 'query' + ), + 'supports' => array( + 'align' => array( + 'wide', + 'full' + ), + 'html' => false, + 'spacing' => array( + 'margin' => true, + 'padding' => true + ), + 'color' => array( + 'gradients' => true, + 'text' => true, + '__experimentalDefaultControls' => array( + 'background' => true + ) + ), + 'typography' => array( + 'fontSize' => true, + 'lineHeight' => true, + '__experimentalFontFamily' => true, + '__experimentalFontWeight' => true, + '__experimentalFontStyle' => true, + '__experimentalTextTransform' => true, + '__experimentalTextDecoration' => true, + '__experimentalLetterSpacing' => true, + '__experimentalDefaultControls' => array( + 'fontSize' => true + ) + ), + '__experimentalBorder' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true, + '__experimentalDefaultControls' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true + ) + ) + ), + 'style' => 'wp-block-query-total' + ), 'quote' => array( '$schema' => 'https://schemas.wp.org/trunk/block.json', 'apiVersion' => 3, diff --git a/wp-includes/version.php b/wp-includes/version.php index 66cb52f17c..8d6bdcacf8 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.8-alpha-59776'; +$wp_version = '6.8-alpha-59777'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.