Skip to content

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

Merged
oandregal merged 1 commit into
wp/7.2from
backport/fix/null-date-inspector
Nov 4, 2026
Merged

oandregal merged 1 commit into
wp/7.2from
backport/fix/null-date-inspector

Conversation

@oandregal

Copy link
Copy Markdown
Member

Manual backport of #86065

Copilot AI balanced review requested due to automatic review settings November 4, 2026 11:37
@github-actions github-actions Bot added [Package] Components /packages/components [Package] Editor /packages/editor [Package] Block library /packages/block-library [Package] Format library /packages/format-library [Package] Block editor /packages/block-editor [Package] Edit Post /packages/edit-post [Tool] Env /packages/env [Package] E2E Tests /packages/e2e-tests [Package] Icons /packages/icons [Package] Edit Site /packages/edit-site [Package] Media Utils /packages/media-utils [Package] Interactivity /packages/interactivity [Package] DataViews /packages/dataviews [Package] Interactivity Router /packages/interactivity-router [Package] Fields /packages/fields labels Nov 4, 2026
@oandregal oandregal added [Type] Bug An existing feature does not function as intended and removed [Package] Components /packages/components [Package] Editor /packages/editor [Package] Block library /packages/block-library [Package] Block editor /packages/block-editor [Package] Edit Post /packages/edit-post [Package] E2E Tests /packages/e2e-tests [Package] Edit Site /packages/edit-site [Package] DataViews /packages/dataviews [Package] Format library /packages/format-library [Tool] Env /packages/env [Package] Icons /packages/icons [Package] Media Utils /packages/media-utils [Package] Interactivity /packages/interactivity [Package] Interactivity Router /packages/interactivity-router [Package] Fields /packages/fields [Package] UI /packages/ui [Package] wp-build /packages/wp-build labels 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>

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.

🟡 Changes recommended

Date changes can move the calendar without updating previewedMonth, leaving otherPosts querying the old month and causing post markers to disappear.

1 open issue
What changed in this PR

Backports #86065 to restore the previous Publish and Status panel date behavior in shared core fields, including the extensible site editor.

Changes:

  • Restores date pickers, Reset, accessibility announcements, and status-change side effects.
  • Allows DataViews filter popovers to fit custom controls.
  • Updates tests, dependencies, and backport checks.
File Description
test/​e2e/​specs/​site-editor/​page-list.spec.js Updates date editing and timezone assertions.
test/​e2e/​specs/​editor/​various/​scheduling.spec.js Adapts scheduling tests to the restored picker.
test/​e2e/​specs/​editor/​various/​post-visibility.spec.js Uses the shared date-picker helper.
test/​e2e/​specs/​editor/​various/​post-summary/​utils.js Adds a date-picker interaction helper.
test/​e2e/​specs/​editor/​various/​datepicker.spec.js Updates timezone tests for picker inputs.
packages/​dataviews/​src/​components/​dataviews-filters/​style.scss Lets input-filter popovers fit custom controls.
packages/​dataviews/​src/​components/​dataviews-filters/​stories/​index.story.tsx Adds filter-popover sizing examples.
packages/​dataviews/​CHANGELOG.md Records the popover sizing fix.
packages/​core-fields/​tsconfig.build.json Adds the accessibility package reference.
packages/​core-fields/​src/​test/​scheduled-date-edit.jsdom.test.tsx Covers scheduled-date inputs and notices.
packages/​core-fields/​src/​test/​post-type-supports.jsdom.test.ts Covers date resets and status side effects.
packages/​core-fields/​src/​test/​date-edit.jsdom.test.tsx Covers Reset, notices, and announcements.
packages/​core-fields/​src/​post_type_supports/​status/​types.ts Adds date and password properties.
packages/​core-fields/​src/​post_type_supports/​status/​field.tsx Restores status-change side effects.
packages/​core-fields/​src/​post_type_supports/​scheduled_date/​field.tsx Registers the custom scheduled-date control.
packages/​core-fields/​src/​post_type_supports/​scheduled_date/​field.php Removes the native datetime control configuration.
packages/​core-fields/​src/​post_type_supports/​scheduled_date/​edit.tsx Adds date and time inputs with an immediate-publication note.
packages/​core-fields/​src/​post_type_supports/​date/​types.ts Allows reset dates to be null.
packages/​core-fields/​src/​post_type_supports/​date/​style.module.css Styles the full-width Reset button.
packages/​core-fields/​src/​post_type_supports/​date/​is-published-on-save.ts Detects dates that publish immediately.
packages/​core-fields/​src/​post_type_supports/​date/​is-date-floating.ts Detects floating draft dates.
packages/​core-fields/​src/​post_type_supports/​date/​is-12-hour-time.ts Reads the site's clock format.
packages/​core-fields/​src/​post_type_supports/​date/​field.tsx Registers the picker and null-reset behavior.
packages/​core-fields/​src/​post_type_supports/​date/​edit.tsx Adds the picker, event markers, Reset, and announcements.
packages/​core-fields/​package.json Declares the accessibility dependency.
package-lock.json Records the dependency change.
.github/​workflows/​check-backport-changelog.yml Excludes core-actions and core-fields PHP changes from the check.

Review effort: Balanced

Comment on lines +47 to +49
const [ previewedMonth, setPreviewedMonth ] = useState( () =>
value ? new Date( value ) : new Date()
);

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.

This is being looked at #86298

@oandregal
oandregal force-pushed the backport/fix/null-date-inspector branch from a50a109 to 8975c4d Compare November 4, 2026 11:45
@github-actions github-actions Bot added [Package] DataViews /packages/dataviews [Package] Fields /packages/fields labels Nov 4, 2026
@oandregal
oandregal merged commit f069721 into wp/7.2 Nov 4, 2026
106 of 111 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Package] DataViews /packages/dataviews [Package] Fields /packages/fields [Type] Bug An existing feature does not function as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants