Repository navigation
Core fields: Restore the previous Publish and Status panel date behaviour - #86295
Merged
Merged
Conversation
oandregal
requested review from
a team,
DAreRodz,
desrosj,
dmsnell,
ellatrix,
fabiankaegy,
getdave,
gigitux,
juanmaguitar,
luisherranz,
ntsekouras,
spacedmonkey,
t-hamano and
tellthemachines
as code owners
November 4, 2026 11:37
oandregal
removed request for
DAreRodz,
fabiankaegy,
ntsekouras,
t-hamano and
tellthemachines
November 4, 2026 11:38
…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>
Contributor
There was a problem hiding this comment.
🟡 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() | ||
| ); |
oandregal
force-pushed
the
backport/fix/null-date-inspector
branch
from
November 4, 2026 11:45
a50a109 to
8975c4d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Manual backport of #86065