Skip to content

Core fields: Restore the previous Publish and Status panel date behaviour - #86065

Merged
oandregal merged 35 commits into
trunkfrom
fix/null-date-inspector
Nov 4, 2026
Merged

oandregal merged 35 commits into
trunkfrom
fix/null-date-inspector

Conversation

@oandregal

@oandregal oandregal commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

What?

Follow up to #85081.

Brings back a way to reset the post date in the DataForm-based inspector, and edits the date with the same picker the previous Publish panel used. The Scheduled Date control in the Status panel gets the picker's date and time inputs, so it can no longer be cleared. It also brings back what the previous Status panel did to the date and password when the status changes, and lets a DataViews filter popover grow to fit a custom control such as this picker.

Why?

See #76076 (comment)

How?

  • Send null when the date is cleared. The date and scheduled_date fields map an empty value to null. The REST API resets the date on null: a draft floats again (publishes immediately), and a published post takes the time it is saved. This is what the previous picker's Reset sent.
  • A custom Edit for the date field (packages/core-fields/src/post_type_supports/date/edit.tsx): the DateTimePicker from @wordpress/components, configured like the previous Publish panel (site time format for 12/24 hours, translated date order, start of week, and dots on the days of other published or scheduled posts of the same type), followed by a full-width Reset button.
  • The Reset button sets the date to null and announces "Publish date set to now." to screen readers. It is enabled whenever the post has a date, including a draft whose date floats. Once the date is null it is disabled, but stays focusable, so focus doesn't drop when it is pressed.
  • A note under the picker, "Publishes immediately.", which also describes the Reset button. It shows only for a scheduled post that won't wait: its date was reset, still floats (null or equal to its modified date), or is in the past. As the editor does, a date less than a minute ahead counts as now (is-published-on-save.ts). The status checked is the edited one, so a draft scheduled in the same form gets the note before it is saved; whether the date floats checks the saved status, as isEditedPostDateFloating() does (is-date-floating.ts). Drafts and published posts get no note.
  • Picking a date announces "Publish date set to %s." to screen readers, as the previous panel did.
  • In a Date filter (the only place DataViews passes an operator to the control), the Reset button, notes, and announcements are left out: the date a filter compares against isn't the post's date.
  • A custom Edit for the scheduled_date field (packages/core-fields/src/post_type_supports/scheduled_date/edit.tsx), shown in the Status panel of a scheduled post. It replaces the native datetime input, which could be cleared and left an empty field, with the date and time inputs of the picker (TimePicker), without its calendar or a way to clear them. It shows the same "Publishes immediately." note as the date picker. The date helpers move to their own files (is-12-hour-time.ts, is-date-floating.ts, is-published-on-save.ts) so both controls share them.
  • The status field's setValue sets the date to null when a scheduled post with a future date gets another status, and clears the password of a post made private, as the previous Status panel's handleStatus did.
  • DataViews filter popover (dataviews-filters/style.scss): a popover holding an input control now takes the control's narrowest width (at least 230px, no maximum) instead of being capped at 250px. The filter name and help text don't count toward that width (contain: inline-size), so they still wrap or truncate. A new "Filter Popover" Storybook story shows the cases: help text, a long name, a custom control that wraps, a custom control with a fixed width, and a list filter with a long element label.
  • Adds @wordpress/a11y as a dependency of @wordpress/core-fields for the announcements.
  • Backport changelog check (.github/workflows/check-backport-changelog.yml): skips the core-actions and core-fields packages. WordPress Core copies their PHP files from the Gutenberg build (copy:gutenberg-php), like the block library, so a change to them reaches Core with the next package update and needs no backport PR.

The fields are shared, so the extensible site editor gets the same control.

Not in this PR: the previous popover had a "Now" action in its header. The DataForm dropdown header only takes a title and a close button, so that would need a change to @wordpress/dataviews.

Tests: date-edit.jsdom.test.tsx covers the Reset value, its disabled state, when the note shows (reset, floating, past and future dates, and a status changed but not saved, with a stand-in core store), and the announcements in a post and in a filter. scheduled-date-edit.jsdom.test.tsx covers the inputs of the Scheduled Date control, its value, and its note. post-type-supports.jsdom.test.ts covers the null value of a cleared date and scheduled_date, and the status side effects.

Testing Instructions

  1. Create a draft post, open the Date panel in the inspector, pick a date and save.
  2. Reload. Open the Date panel again: it shows the time inputs, date inputs and calendar of the previous Publish panel, followed by a Reset button.
  3. Click Reset: the button is disabled. Save. The post publishes immediately again: in the REST API (/wp/v2/posts/<id>?context=edit) date equals modified. A draft shows no note.
  4. Publish a post with a date in the past and click Reset in the Date panel: there is no note. Save: its date becomes the time of the save.
  5. Schedule a post, click Reset: it says "Publishes immediately." Save: the post is published. Picking a past date for a scheduled post shows the same note.
  6. Open the Status panel of a scheduled post: under Scheduled Date it shows the time and date inputs, without a calendar, and they can't be emptied. Changing them changes the post date; a past date says "Publishes immediately."
  7. Schedule another post, change its status to Draft and save: the future date is dropped, and the post publishes immediately again.
  8. Give a post a password, change its status to Private and save: the password is cleared.
  9. Days with other published or scheduled posts show a dot in the calendar; navigate to other months to check they update.
  10. In a list that filters by date, such as the Pages list of the site editor, add a Date filter: the picker fits inside the popover, with no Reset button.
  11. Run npm run storybook:dev and open "Design System / DataViews / DataViews / Filter Popover". Open each filter: the popover fits its content, help text wraps, and a long filter name is truncated on one line.

Testing Instructions for Keyboard

  1. Open the Date panel with Enter on "Edit Date".
  2. Tab through the hours, minutes, AM/PM, day, month and year inputs, then the calendar (arrow keys move between days, Enter selects one), then to Reset. Selecting a day announces "Publish date set to …".
  3. Press Enter on Reset: a screen reader announces "Publish date set to now.", and focus stays on the button, now disabled. On a scheduled post, it reads the note "Publishes immediately." as its description.
  4. Open the Status panel of a scheduled post with Enter on "Edit Status", pick Scheduled if needed, and Tab to the hours, minutes, AM/PM, day, month and year inputs of Scheduled Date: there is no calendar to tab through.

Screenshots or screencast

Before After
Screenshot 2026-10-30 at 18 03 02 Screenshot 2026-10-30 at 18 01 27

Scheduled Date, in the Status panel of a scheduled post: the date and time inputs replace the native datetime input, without a calendar or a way to clear them.

The Status panel of a scheduled post, with the time and date inputs of Scheduled Date

Use of AI Tools

Claude Code was used to investigate the issue, write the changes and tests, check them in the editor, and draft this description. I reviewed the changes.

@oandregal oandregal added the [Type] Bug An existing feature does not function as intended label Oct 30, 2026
Copilot AI balanced review requested due to automatic review settings October 30, 2026 16:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@github-actions

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

🤖 PR meta 🤖

Preview in WordPress Playground

🎉 Props

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: oandregal <oandregal@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: jorgefilipecosta <jorgefilipecosta@git.wordpress.org>
Co-authored-by: ciampo <mciampini@git.wordpress.org>
Co-authored-by: jasmussen <joen@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.


Props Bot commands

You can trigger Props Bot actions by commenting on this PR:

  • @propsbot add <username> to give props to a GitHub user. Requires write access.
  • @propsbot remove <username> to leave a user out of the props. Requires write access.
  • @propsbot refresh to refresh this list. Adding the props-bot label works too.

Updated as activity occurs, without notifying anyone named here. Add the props-bot label to refresh.

📦 Bundle size

Size Change: +2.34 kB (+0.03%)

Total Size: 8.6 MB

📦 View Changed
Filename Size Change
build/modules/core-fields/post_type_supports.min.js 75.5 kB +2.1 kB (+2.86%)
build/styles/edit-site/style-rtl.css 20.5 kB +30 B (+0.15%)
build/styles/edit-site/style-rtl.min.css 16.6 kB +27 B (+0.16%)
build/styles/edit-site/style.css 20.6 kB +30 B (+0.15%)
build/styles/edit-site/style.min.css 16.6 kB +27 B (+0.16%)
build/styles/editor/style-rtl.css 30.6 kB +29 B (+0.09%)
build/styles/editor/style-rtl.min.css 26.3 kB +37 B (+0.14%)
build/styles/editor/style.css 30.7 kB +28 B (+0.09%)
build/styles/editor/style.min.css 26.3 kB +36 B (+0.14%)

823d439 Run

⚡ Performance

Show the results

Client side metrics exclude the server response time.

front-end-block-theme

Metric 946d570 trunk % Change
timeToFirstByte 45.55 ms +3.95% -5.82% 47.05 ms +4.89% -4.78% -3.19%
largestContentfulPaint 76 ms +5.26% -2.63% 80 ms +7.5% -5% -5%
lcpMinusTtfb 31.1 ms +14.79% -5.79% 30.75 ms +18.37% -7.32% 1.14%
wpBeforeTemplate 23.16 ms +15.59% -2.42% 23.9 ms +10.17% -1.42% -3.1%
wpTemplate 17.66 ms +5.89% -5.21% 18.62 ms +9.29% -6.98% -5.16%
wpTotal 42.22 ms +3.93% -6.51% 43.53 ms +5.58% -5.79% -3.01%
wpMemoryUsage 7.71 MB +0% -0% 7.67 MB +0% -0% 0.43%
wpDbQueries 16 +0% -0% 16 +0% -0% 0%

front-end-classic-theme

Metric 946d570 trunk % Change
timeToFirstByte 34 ms +3.38% -2.35% 38.05 ms +6.04% -3.94% -10.64%
largestContentfulPaint 74 ms +2.7% -2.7% 84 ms +4.76% -4.76% -11.9%
lcpMinusTtfb 40.45 ms +3.34% -4.33% 45.85 ms +2.84% -2.84% -11.78%
wpBeforeTemplate 20.2 ms +4.11% -2.82% 20.4 ms +9.26% -3.38% -0.98%
wpTemplate 11 ms +3.18% -6.18% 14.15 ms +8.55% -6.22% -22.26%
wpTotal 31.52 ms +2.6% -2.7% 35.19 ms +6.14% -4.8% -10.43%
wpMemoryUsage 6.28 MB +0% -0% 6.36 MB +0% -0% -1.21%
wpDbQueries 9 +0% -0% 13 +0% -0% -30.77%

media-processing

Metric 946d570 trunk % Change
mediaProcessingJpeg 325.6 ms +2.9% -0.55% 331.35 ms +0.72% -1.04% -1.74%
mediaProcessingAvif 4912.19 ms +0.42% -0.55% 4936.9 ms +0.32% -0.38% -0.5%
mediaProcessingJpegToAvif 3411.67 ms +0.31% -0.09% 3432.75 ms +0.12% -0.18% -0.61%

media-upload

Metric 946d570 trunk % Change
jpegUploadProcessing 1455.37 ms +2.22% -1.25% 1438.94 ms +0.18% -0.47% 1.14%
pngUploadProcessing 231.56 ms +31.74% -2.69% 228.6 ms +6.7% -5.25% 1.29%
largeJpegUploadProcessing 1423.09 ms +0.81% -0.51% 1431.63 ms +0.56% -0.8% -0.6%
multipleImageUploadProcessing 1509.92 ms +0.29% -0.66% 1494.46 ms +1.56% -1.52% 1.03%

post-editor

Metric 946d570 trunk % Change
serverResponse 324.04 ms +1.66% -6.4% 320.75 ms +1.66% -9.72% 1.03%
firstPaint 281.16 ms +0.96% -6.49% 385.81 ms +2.51% -36.84% -27.12%
domContentLoaded 662.26 ms +1.31% -0.94% 677.85 ms +0.87% -1.7% -2.3%
loaded 662.95 ms +1.34% -0.94% 678.64 ms +0.86% -1.72% -2.31%
firstContentfulPaint 390.67 ms +1.71% -2.45% 393.86 ms +2.29% -2.76% -0.81%
firstBlock 1687.03 ms +0.58% -0.76% 1741.07 ms +2.57% -3.42% -3.1%
type 14.07 ms +10.31% -3.06% 15.42 ms +8.24% -9.14% -8.75%
typeWithoutInspector 14.5 ms +0.76% -8.83% 14.81 ms +3.17% -7.49% -2.09%
typeWithTopToolbar 19 ms +6.95% -7.47% 19.33 ms +2.9% -8.17% -1.71%
typeContainer 6.73 ms +1.93% -2.97% 6.8 ms +6.91% -5.74% -1.03%
focus 93.76 ms +5.4% -10.49% 89.55 ms +3.13% -4.13% 4.7%
firstFocus 181.78 ms +0% -0% 184.6 ms +0% -0% -1.53%
selectAll 317.87 ms +1.98% -0.62% 300 ms +1.24% -0.25% 5.96%
undo 25.75 ms +7.65% -6.6% 24.92 ms +8.19% -4.53% 3.33%
listViewOpen 59.74 ms +3.98% -8.3% 61.63 ms +7.98% -16.27% -3.07%
inserterOpen 34.1 ms +2.38% -9.77% 32.46 ms +3.85% -4.96% 5.05%
inserterHover 9.29 ms +3.98% -5.6% 9.62 ms +4.26% -5.82% -3.43%
inserterSearch 7.42 ms +8.89% -5.8% 7.19 ms +5.42% -5.84% 3.2%
loadPatterns 501.08 ms +2.55% -1.85% 527.6 ms +1.01% -5.13% -5.03%
wpTotal 315.43 ms +1.6% -6.52% 312.21 ms +1.62% -10.04% 1.03%
wpMemoryUsage 14.75 MB +0% -0% 14.72 MB +0% -0% 0.24%
wpDbQueries 55 +0% -0% 55 +0% -0% 0%

site-editor

Metric 946d570 trunk % Change
serverResponse 463.87 ms +1.86% -6.82% 456.07 ms +0.92% -1.11% 1.71%
firstPaint 349.63 ms +11.17% -2.89% 343.63 ms +4.99% -11.59% 1.75%
domContentLoaded 861.09 ms +0.64% -0.63% 840.33 ms +2.17% -0.28% 2.47%
loaded 862.05 ms +0.67% -0.63% 841.26 ms +2.15% -0.3% 2.47%
firstContentfulPaint 500.5 ms +1.7% -2.15% 483.09 ms +0.74% -1.58% 3.6%
firstBlock 2538.14 ms +0.92% -1.21% 2466.39 ms +0.98% -0.46% 2.91%
type 17.44 ms +1.78% -10.15% 17.66 ms +12% -12.29% -1.25%
navigate 117.87 ms +2.27% -2.47% 114.82 ms +5.66% -2.05% 2.66%
loadPatterns 1311.74 ms +6.77% -7.05% 1131.28 ms +13.54% -8.55% 15.95%
loadPages 985.42 ms +0.75% -1.52% 946.25 ms +2.3% -1.43% 4.14%
wpTotal 454.45 ms +1.87% -6.94% 446.68 ms +0.94% -1.16% 1.74%
wpMemoryUsage 12.77 MB +0% -0% 12.73 MB +0% -0% 0.27%
wpDbQueries 45 +0% -0% 45 +0% -0% 0%

823d439 Run

🏁 Flaky tests

Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

Should insert content using the global inserter in /test/e2e/specs/widgets/editing-widgets.spec.js, passed after 1 failed attempt.

does not select blocks in the canvas preview when editing from the sidebar in /test/e2e/specs/site-editor/navigation-sidebar-list-view.spec.js, passed after 1 failed attempt.
Error: expect(locator).toBeFocused() failed

Locator: getByRole('combobox', { name: 'Search or type URL' })
Expected: focused
Timeout: 5000ms
Error: element(s) not found

Call log:
  - Expect "toBeFocused" getByRole('combobox', { name: 'Search or type URL' }) with timeout 5000ms
  - waiting for getByRole('combobox', { name: 'Search or type URL' })

    at LinkControl.useLinkControlSearch (/home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/navigation-sidebar-list-view.spec.js:416:47)
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/navigation-sidebar-list-view.spec.js:179:21
should undo without broken temporary state in /test/e2e/specs/editor/blocks/image.spec.js, passed after 1 failed attempt.
Error: expect(received).toBe(expected) // Object.is equality

- Expected  - 2
+ Received  + 2

- <!-- wp:image -->
- <figure class="wp-block-image"><img alt=""/></figure>
+ <!-- wp:image {"id":25,"sizeSlug":"full","linkDestination":"none"} -->
+ <figure class="wp-block-image size-full"><img src="http://localhost:8891/wp-content/uploads/2026/11/b5a37df7-3298-4bbd-94dc-1e7e9a45c38c.png" alt="" class="wp-image-25"/></figure>
  <!-- /wp:image -->
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/image.spec.js:432:49

823d439 Run

@oandregal

Copy link
Copy Markdown
Member Author

cc @verofasulo

Edit: DateEdit,
// A cleared control gives `undefined`, which a save drops, so send `null`:
// the REST API resets the date on `null`.
setValue: ( { value } ) => ( { date: value ?? null } ),

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coming from #76076 (comment)

This would be the only thing we'd need to "clear" the date and respect "floating dates". However, this made it obvious how painful it was to clear (have to open the native control, etc.). It wasn't a great experience. We need to iterate on the default datetime control but it doesn't need to be tied to the 7.2 schedule. The rest of the PR is about changing the UI to a custom one.

@ciampo

ciampo commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

To make sure I follow, one of the main reasons we are reverting is the lack of dedicated date and time inputs (see #82177 ) ? (cc @WordPress/gutenberg-components )

@jasmussen

Copy link
Copy Markdown
Contributor

Feels reasonable, and it relates also to #81806, which we wouldn't want to regress, i.e. we should not bring the heading back to the panel title in the pre-publish state.

The bigger difference in 81806 is that I used a "Now" label, and put it before the calendar, which would then grey out if it's today. To note, we reverted that to no button through the PR, but the initial image still shows it.

@oandregal

Copy link
Copy Markdown
Member Author

To make sure I follow, one of the main reasons we are reverting is the lack of dedicated date and time inputs (see #82177 ) ?

It's a bit of a few things:

  • Inability to "reset" the date to a "floating state" where it just follows the current date (this could fix it)
  • Even with the ability to "reset", where that reset lives is still problematic: users would need to open a second date calendar to click the "clear" button.
  • The fact that we have two date calendars in the same field: the embedded and the one opened by the native control.

All compounded, it presents an experience that is worse than we have today. Given the time-constraints, I thought we'd maintain an UI similar to the existing while we iterate on the new one.

Some direction for the new datetime experience could be along the lines of 1) all actions (including reset) are available in the popup without a secondary click and 2) we don't have two components to change the same behavior (e.g., date calendar).

@oandregal

Copy link
Copy Markdown
Member Author

Feels reasonable, and it relates also to #81806, which we wouldn't want to regress, i.e. we should not bring the heading back to the panel title in the pre-publish state.

Agree. I've noticed that component and designed this to match it. Not right now, but I wonder if the components of the pre-publish panel can also reuse what we have in the inspector and quick edit.

@oandregal
oandregal force-pushed the fix/null-date-inspector branch from 198d2de to 169b7b8 Compare November 2, 2026 09:43
@@ -10,4 +11,8 @@ export const fieldExtensions: FieldsScriptParts< PostWithDate >[ string ] = {
// Only the users who can publish the post see the control.
isVisible: ( item ) => hasActionLink( item, 'wp:action-publish' ),
render: DateView,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In WordPress 7.1, clicking "Now" in the Publish popover makes the summary show "Immediately" for a draft, because getPostScheduleLabel() returns it when ! date || isEditedPostDateFloating(). With this PR, clicking Reset doesn't do that: DateView has no floating case, so a draft shows "Modified: …" with the current time (getDate( null ) returns now).

Since view.tsx isn't part of the diff, I can't leave a suggestion there. How about using the isDateFloating() helper this PR adds at the top of DateView?

 import type { PostWithDate } from './types';
+import { isDateFloating } from './is-date-floating';
 
 ...
 
 const DateView = ( { item }: { item: PostWithDate } ) => {
+	if ( isDateFloating( item ) ) {
+		return __( 'Immediately' );
+	}
+
 	const isDraftOrPrivate = [ 'draft', 'private' ].includes(

@oandregal oandregal Nov 2, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've pushed some changes to improve floating dates and the ability to reset. I'll do a second review.

In WordPress 7.1, clicking "Now" in the Publish popover makes the summary show "Immediately" for a draft

The problem with doing this is that "Immediately" would also be displayed in DataViews lists (e.g., in a table cell), where it is not obvious what it means.

@jorgefilipecosta jorgefilipecosta Nov 2, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this matters even more for scheduled posts. In 7.1, clicking "Now" on a scheduled post made the summary show "Immediately", and saving published the post right away. With this PR Reset gives the same result on save, but the summary still says "Scheduled" with the current time and the note says "Changes to the time you save.", so only the pre-publish panel hints that the post will go live. Since the note only shows where the date is edited and not in the list cells, what do you think of saying "Publishes when you save." there when the saved status is future? It would avoid the problem of "Immediately" showing in table cells.

The date field of a scheduled post after Reset, showing the note "Changes to the time you save."

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the note at 09aef0d

// Only the users who can publish the post see the control.
isVisible: ( item ) => hasActionLink( item, 'wp:action-publish' ),
render: DateView,
Edit: DateEdit,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DataViews reuses field.Edit for filters, so this custom control now also appears in the Date filter of the Pages list. There, the DateTimePicker is wider than the filter popover and overflows horizontally, and the Reset button shows up even though it means nothing for a filter.

Image

Could the custom control be limited to the form?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've made the filter popover grow to fit a custom control at b5469d8 (I'm stress testing this change)

Screenshot 2026-11-03 at 13 35 34

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've followed up on this, added a new story and checked a few scenarios. I've also tested our usage and haven't run into anything weird:

Screen.Recording.2026-11-03.at.16.53.08.mov

@ciampo

ciampo commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

@oandregal gotcha, sounds more like an integration task than a lack of individual DS componentry. I'm still planning on working on date and time inputs soon, hoping it may help, too. Please be in touch if you have any further DS feedback!

@t-hamano t-hamano added the Backport to WP 7.2 Beta/RC Pull request that needs to be backported to the WordPress major release that's currently in beta label Nov 3, 2026
@github-project-automation github-project-automation Bot moved this to 🔎 Needs Review in WordPress 7.2 Editor Tasks Nov 3, 2026
@oandregal
oandregal force-pushed the fix/null-date-inspector branch from e78b24d to e35f938 Compare November 3, 2026 12:34
@github-actions github-actions Bot added the [Package] DataViews /packages/dataviews label Nov 3, 2026
@oandregal
oandregal force-pushed the fix/null-date-inspector branch from e35f938 to e8800f1 Compare November 3, 2026 15:30
oandregal and others added 4 commits November 4, 2026 09:57
…mediately

A scheduled post whose date is reset or in the past goes public when it
is saved, just as a floating draft does when it is published. Both now
show the same note, "Publishes immediately.", instead of two wordings
for the same outcome.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hes immediately

The note under the date picker now shows only when the edited status is
scheduled and the date is reset, floating, or in the past. Drafts and
published posts get no note, and a draft scheduled in the same form but
not saved yet gets it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
So that the scheduled date control can share them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The native datetime input could be cleared, which left an empty field.
The new control has the date and time inputs of the date picker, without
its calendar or a way to clear them, and says when the post publishes
immediately.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@oandregal
oandregal force-pushed the fix/null-date-inspector branch from 984cba1 to a320d14 Compare November 4, 2026 09:29
WordPress Core copies their PHP files from the Gutenberg build in its
`copy:gutenberg-php` Grunt task, like the block library, so a change to
them reaches Core with the next package update and needs no backport PR.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@oandregal
oandregal requested a review from desrosj as a code owner November 4, 2026 10:25
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@oandregal oandregal changed the title Core fields: Restore the post date picker and its Reset button Core fields: Restore the previous Publish and Status panel date behaviour Nov 4, 2026
@oandregal
oandregal merged commit d40846c into trunk Nov 4, 2026
112 of 114 checks passed
@oandregal
oandregal deleted the fix/null-date-inspector branch November 4, 2026 11:24
@github-project-automation github-project-automation Bot moved this from 🔎 Needs Review to ✅ Done in WordPress 7.2 Editor Tasks Nov 4, 2026
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown

There was a conflict while trying to cherry-pick the commit to the wp/7.2 branch. Please resolve the conflict manually and create a PR to the wp/7.2 branch.

PRs to wp/7.2 are similar to PRs to trunk, but you should base your PR on the wp/7.2 branch instead of trunk.

# Checkout the wp/7.2 branch instead of trunk.
git checkout wp/7.2

# Create a new branch for your PR.
git checkout -b my-branch

# Cherry-pick the commit.
git cherry-pick d40846c59bd43d0d004f0a99a87e7241760f4d7e

# Check which files have conflicts.
git status

# Resolve the conflict...
# Add the resolved files to the staging area.
git status
git add .
git cherry-pick --continue

# Push the branch to the repository
git push origin my-branch

# Create a PR and set the base to the wp/7.2 branch.
# See https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/changing-the-base-branch-of-a-pull-request.

@oandregal

Copy link
Copy Markdown
Member Author

Manual backport at #86295

oandregal added a commit that referenced this pull request Nov 4, 2026
…iour (#86065)

Co-authored-by: oandregal <oandregal@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: jorgefilipecosta <jorgefilipecosta@git.wordpress.org>
Co-authored-by: ciampo <mciampini@git.wordpress.org>
Co-authored-by: jasmussen <joen@git.wordpress.org>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
oandregal added a commit that referenced this pull request Nov 4, 2026
…iour (#86065) (#86295)

Co-authored-by: oandregal <oandregal@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: jorgefilipecosta <jorgefilipecosta@git.wordpress.org>
Co-authored-by: ciampo <mciampini@git.wordpress.org>
Co-authored-by: jasmussen <joen@git.wordpress.org>
@t-hamano t-hamano added Backported to WP Core Pull request that has been successfully merged into WP Core and removed Backport to WP 7.2 Beta/RC Pull request that needs to be backported to the WordPress major release that's currently in beta labels Nov 5, 2026
wporg-sync pushed a commit to WordPress/wordpress-develop that referenced this pull request Nov 10, 2026
This updates the pinned commit hash of the Gutenberg repository from `c035c1a649ef68f5c1646694cf440df1d7ae6e62` to `1b0dc90c700746b108e080263a4dc67707b750a1` (fixes cherry-picked to the `wp/7.2` branch).

A full list of changes included in this commit can be found on GitHub: WordPress/gutenberg@c035c1a...1b0dc90

- [WP 7.2] Components, UI: Use focus-visible for disabled item focus rings (WordPress/gutenberg#86269)
- Notes: Keep the canvas still when a new note is added (WordPress/gutenberg#86283) (#86293)
- Post summary: Show placeholders for an empty excerpt and a missing author (WordPress/gutenberg#85842) (#86294)
- Core fields: Restore the previous Publish and Status panel date behaviour (WordPress/gutenberg#86065) (#86295)
- Interactivity API: Show the data-wp-html fallback on created elements under Trusted Types (WordPress/gutenberg#84924) (#86306)
- [WP 7.2] UI: Add LoadingIndicator to item popups (WordPress/gutenberg#86303)
- Interactivity Router: Fix nested router regions without data-wp-interactive disappearing on navigation (WordPress/gutenberg#86061) (#86308)
- Interactivity API: Run watch() cleanups and attachTo render callbacks without a directive scope (WordPress/gutenberg#86058) (#86311)
- DataForm: Fix clipped focus ring of field values in panel layout (WordPress/gutenberg#86361) (#86369)
- Tests: Avoid passing an object when invoking static methods via reflection. (WordPress/gutenberg#86329)
- [WP 7.2] DropdownMenu: Invert the selected item indicator while highlighted (WordPress/gutenberg#86379)
- Fields: Lowercase the (no excerpt), (no author) and (no description) placeholders (WordPress/gutenberg#86391) (#86424)
- Core fields: Decode non-Latin slugs in the slug field (WordPress/gutenberg#86359)
- Interactivity API: Show the new page's server content in kept data-wp-html elements (WordPress/gutenberg#86416)
- DataForm: Tighten value density in the panel layout (WordPress/gutenberg#86389) (#86426)
- Post summary: Show "Immediately" and relative publish dates in the Date row (WordPress/gutenberg#86367)
- [WP 7.2] Block Styles: Show the active style variation in forced colors mode (WordPress/gutenberg#86450)
- Site Editor: Fix the frame snapping to the mobile width when resized with the mouse (WordPress/gutenberg#86423)
- Image: measure the lightbox container, not the image's parent (WordPress/gutenberg#82312) (#85491)
- URL: Decode percent-encoded characters in getFilename (WordPress/gutenberg#86422) (#86477)
- Fix: Hide the author avatar when the site does not show avatars and frame a blank one. (WordPress/gutenberg#86395)
- Date picker: Mark the posts of the month a typed or reset date moves to (WordPress/gutenberg#86298) (#86463)
- Fix iOS 27 tap into a heading leaving the caret in a quote (WordPress/gutenberg#85809)
- Hand focus back to the field on a press in every browser (WordPress/gutenberg#86549)
- Prevent jobs from running within forks on `push`. (WordPress/gutenberg#85968)
- i18n: Add translator context to the "Copy error" button label (WordPress/gutenberg#85967)
- Bubble editor canvas events to the outer iframe (WordPress/gutenberg#85263)
- UI: Use LoadingIndicator in remaining popup consumers (WordPress/gutenberg#86501)
- Block Editor: Keep the revision canvas read-only in preview mode (WordPress/gutenberg#84578)
- Core Data: Rank an exact title match first among tied link suggestions (WordPress/gutenberg#86327)
- Tests: Render the router-html-server context case through state (WordPress/gutenberg#86511)
- iOS tests: De-flake the selection handle test (WordPress/gutenberg#85461)

Props mamaduka, wildworks.
See #66340.

git-svn-id: https://develop.svn.wordpress.org/trunk@65379 602fd350-edb4-49c9-b593-d223f7449a82
wporg-sync pushed a commit to WordPress/WordPress that referenced this pull request Nov 10, 2026
This updates the pinned commit hash of the Gutenberg repository from `c035c1a649ef68f5c1646694cf440df1d7ae6e62` to `1b0dc90c700746b108e080263a4dc67707b750a1` (fixes cherry-picked to the `wp/7.2` branch).

A full list of changes included in this commit can be found on GitHub: WordPress/gutenberg@c035c1a...1b0dc90

- [WP 7.2] Components, UI: Use focus-visible for disabled item focus rings (WordPress/gutenberg#86269)
- Notes: Keep the canvas still when a new note is added (WordPress/gutenberg#86283) (#86293)
- Post summary: Show placeholders for an empty excerpt and a missing author (WordPress/gutenberg#85842) (#86294)
- Core fields: Restore the previous Publish and Status panel date behaviour (WordPress/gutenberg#86065) (#86295)
- Interactivity API: Show the data-wp-html fallback on created elements under Trusted Types (WordPress/gutenberg#84924) (#86306)
- [WP 7.2] UI: Add LoadingIndicator to item popups (WordPress/gutenberg#86303)
- Interactivity Router: Fix nested router regions without data-wp-interactive disappearing on navigation (WordPress/gutenberg#86061) (#86308)
- Interactivity API: Run watch() cleanups and attachTo render callbacks without a directive scope (WordPress/gutenberg#86058) (#86311)
- DataForm: Fix clipped focus ring of field values in panel layout (WordPress/gutenberg#86361) (#86369)
- Tests: Avoid passing an object when invoking static methods via reflection. (WordPress/gutenberg#86329)
- [WP 7.2] DropdownMenu: Invert the selected item indicator while highlighted (WordPress/gutenberg#86379)
- Fields: Lowercase the (no excerpt), (no author) and (no description) placeholders (WordPress/gutenberg#86391) (#86424)
- Core fields: Decode non-Latin slugs in the slug field (WordPress/gutenberg#86359)
- Interactivity API: Show the new page's server content in kept data-wp-html elements (WordPress/gutenberg#86416)
- DataForm: Tighten value density in the panel layout (WordPress/gutenberg#86389) (#86426)
- Post summary: Show "Immediately" and relative publish dates in the Date row (WordPress/gutenberg#86367)
- [WP 7.2] Block Styles: Show the active style variation in forced colors mode (WordPress/gutenberg#86450)
- Site Editor: Fix the frame snapping to the mobile width when resized with the mouse (WordPress/gutenberg#86423)
- Image: measure the lightbox container, not the image's parent (WordPress/gutenberg#82312) (#85491)
- URL: Decode percent-encoded characters in getFilename (WordPress/gutenberg#86422) (#86477)
- Fix: Hide the author avatar when the site does not show avatars and frame a blank one. (WordPress/gutenberg#86395)
- Date picker: Mark the posts of the month a typed or reset date moves to (WordPress/gutenberg#86298) (#86463)
- Fix iOS 27 tap into a heading leaving the caret in a quote (WordPress/gutenberg#85809)
- Hand focus back to the field on a press in every browser (WordPress/gutenberg#86549)
- Prevent jobs from running within forks on `push`. (WordPress/gutenberg#85968)
- i18n: Add translator context to the "Copy error" button label (WordPress/gutenberg#85967)
- Bubble editor canvas events to the outer iframe (WordPress/gutenberg#85263)
- UI: Use LoadingIndicator in remaining popup consumers (WordPress/gutenberg#86501)
- Block Editor: Keep the revision canvas read-only in preview mode (WordPress/gutenberg#84578)
- Core Data: Rank an exact title match first among tied link suggestions (WordPress/gutenberg#86327)
- Tests: Render the router-html-server context case through state (WordPress/gutenberg#86511)
- iOS tests: De-flake the selection handle test (WordPress/gutenberg#85461)

Props mamaduka, wildworks.
See #66340.
Built from https://develop.svn.wordpress.org/trunk@65379


git-svn-id: http://core.svn.wordpress.org/trunk@64518 1a063a9b-81f0-0310-95a4-ce76da25c4cd
lucatume added a commit to Automattic/wp-calypso that referenced this pull request Nov 20, 2026
The `editor__schedule` spec failed on Gutenberg edge Simple sites, which
run Gutenberg 24.5.0-rc.1, timing out while setting the publish date.
WordPress/gutenberg#86065, first shipped in 24.5, put the post Date
field back on the `DateTimePicker`, rendered inside the post summary's
DataForm dropdown instead of the old `.editor-post-schedule__dialog`
popover. `setScheduleDetails` waited for either the single
`datetime-local` input of earlier DataForm builds or the picker's fields
inside that popover, and found neither.

The picker's fields are now looked up under `.components-datetime`, the
`DateTimePicker` root, which renders in both the old popover and the new
dropdown.
arshidkv12 pushed a commit to arshidkv12/wordpress-develop that referenced this pull request Nov 21, 2026
This updates the pinned commit hash of the Gutenberg repository from `c035c1a649ef68f5c1646694cf440df1d7ae6e62` to `1b0dc90c700746b108e080263a4dc67707b750a1` (fixes cherry-picked to the `wp/7.2` branch).

A full list of changes included in this commit can be found on GitHub: WordPress/gutenberg@c035c1a...1b0dc90

- [WP 7.2] Components, UI: Use focus-visible for disabled item focus rings (WordPress/gutenberg#86269)
- Notes: Keep the canvas still when a new note is added (WordPress/gutenberg#86283) (#86293)
- Post summary: Show placeholders for an empty excerpt and a missing author (WordPress/gutenberg#85842) (#86294)
- Core fields: Restore the previous Publish and Status panel date behaviour (WordPress/gutenberg#86065) (#86295)
- Interactivity API: Show the data-wp-html fallback on created elements under Trusted Types (WordPress/gutenberg#84924) (#86306)
- [WP 7.2] UI: Add LoadingIndicator to item popups (WordPress/gutenberg#86303)
- Interactivity Router: Fix nested router regions without data-wp-interactive disappearing on navigation (WordPress/gutenberg#86061) (#86308)
- Interactivity API: Run watch() cleanups and attachTo render callbacks without a directive scope (WordPress/gutenberg#86058) (#86311)
- DataForm: Fix clipped focus ring of field values in panel layout (WordPress/gutenberg#86361) (#86369)
- Tests: Avoid passing an object when invoking static methods via reflection. (WordPress/gutenberg#86329)
- [WP 7.2] DropdownMenu: Invert the selected item indicator while highlighted (WordPress/gutenberg#86379)
- Fields: Lowercase the (no excerpt), (no author) and (no description) placeholders (WordPress/gutenberg#86391) (#86424)
- Core fields: Decode non-Latin slugs in the slug field (WordPress/gutenberg#86359)
- Interactivity API: Show the new page's server content in kept data-wp-html elements (WordPress/gutenberg#86416)
- DataForm: Tighten value density in the panel layout (WordPress/gutenberg#86389) (#86426)
- Post summary: Show "Immediately" and relative publish dates in the Date row (WordPress/gutenberg#86367)
- [WP 7.2] Block Styles: Show the active style variation in forced colors mode (WordPress/gutenberg#86450)
- Site Editor: Fix the frame snapping to the mobile width when resized with the mouse (WordPress/gutenberg#86423)
- Image: measure the lightbox container, not the image's parent (WordPress/gutenberg#82312) (#85491)
- URL: Decode percent-encoded characters in getFilename (WordPress/gutenberg#86422) (#86477)
- Fix: Hide the author avatar when the site does not show avatars and frame a blank one. (WordPress/gutenberg#86395)
- Date picker: Mark the posts of the month a typed or reset date moves to (WordPress/gutenberg#86298) (#86463)
- Fix iOS 27 tap into a heading leaving the caret in a quote (WordPress/gutenberg#85809)
- Hand focus back to the field on a press in every browser (WordPress/gutenberg#86549)
- Prevent jobs from running within forks on `push`. (WordPress/gutenberg#85968)
- i18n: Add translator context to the "Copy error" button label (WordPress/gutenberg#85967)
- Bubble editor canvas events to the outer iframe (WordPress/gutenberg#85263)
- UI: Use LoadingIndicator in remaining popup consumers (WordPress/gutenberg#86501)
- Block Editor: Keep the revision canvas read-only in preview mode (WordPress/gutenberg#84578)
- Core Data: Rank an exact title match first among tied link suggestions (WordPress/gutenberg#86327)
- Tests: Render the router-html-server context case through state (WordPress/gutenberg#86511)
- iOS tests: De-flake the selection handle test (WordPress/gutenberg#85461)

Props mamaduka, wildworks.
See #66340.

git-svn-id: https://develop.svn.wordpress.org/trunk@65379 602fd350-edb4-49c9-b593-d223f7449a82
Vedant-Gandhi pushed a commit to Vedant-Gandhi/gutenberg that referenced this pull request Nov 30, 2026
…iour (WordPress#86065)

Co-authored-by: oandregal <oandregal@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: jorgefilipecosta <jorgefilipecosta@git.wordpress.org>
Co-authored-by: ciampo <mciampini@git.wordpress.org>
Co-authored-by: jasmussen <joen@git.wordpress.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backported to WP Core Pull request that has been successfully merged into WP Core [Package] DataViews /packages/dataviews [Package] Fields /packages/fields [Type] Bug An existing feature does not function as intended

Projects

Development

Successfully merging this pull request may close these issues.

6 participants