Commit bc3bb8c644 for wordpress.org
commit bc3bb8c644116e82473b07d499ff0b3817cfe5c2
Author: oandregal <oandregal@git.wordpress.org>
Date: Mon Nov 9 11:24:55 2026 +0000
Editor: Summarize the `date` panel of the post form with `publish_date`.
In the default post type form returned by `_wp_get_default_posttype_form()`, the `date` field is now a panel summarized by the `publish_date` field. The summary reads "Immediately" while the post has no date of its own, as the post summary did before it moved to the form.
Post types that provide their own form are unchanged.
Includes unit tests.
Props oandregal, jorgefilipecosta.
See #65981.
Built from https://develop.svn.wordpress.org/trunk@65345
git-svn-id: http://core.svn.wordpress.org/trunk@64485 1a063a9b-81f0-0310-95a4-ce76da25c4cd
diff --git a/wp-includes/version.php b/wp-includes/version.php
index f668a608bb..d6c73f2066 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '7.2-beta4-65344';
+$wp_version = '7.2-beta4-65345';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
diff --git a/wp-includes/view-config.php b/wp-includes/view-config.php
index f0448d9764..fa7b4f8528 100644
--- a/wp-includes/view-config.php
+++ b/wp-includes/view-config.php
@@ -45,7 +45,8 @@ function wp_get_entity_view_config_hook_name( $kind, $name ) {
* returns `false`.
*
* @since 7.1.0
- * @since 7.2.0 Shows a placeholder for an empty excerpt and a missing author.
+ * @since 7.2.0 Shows a placeholder for an empty excerpt and a missing author,
+ * and summarizes the `date` panel with the `publish_date` field.
*
* @return array The default form configuration.
*/
@@ -95,7 +96,13 @@ function _wp_get_default_posttype_form() {
'sticky',
),
),
- 'date',
+ array(
+ 'id' => 'date',
+ 'layout' => array(
+ 'type' => 'panel',
+ 'summary' => 'publish_date',
+ ),
+ ),
'slug',
array(
'id' => 'author',