Skip to content

[WP 7.2] Abilities: Accept a date-time without an offset in the date-time schema format (#86845) - #87311

Merged
peterwilsoncc merged 1 commit into
wp/7.2from
backport/wp-7.2-86845
Nov 24, 2026
Merged

peterwilsoncc merged 1 commit into
wp/7.2from
backport/wp-7.2-86845

Conversation

@peterwilsoncc

Copy link
Copy Markdown
Contributor

What?

Manual backport of #86845 to the wp/7.2 branch, since the automatic cherry-pick failed (#86845 (comment)).

Why?

Without this change, executeAbility() rejects date-times without a time zone offset, such as 2026-10-21T09:30:00, in the date-time schema format. The server accepts them through rest_parse_date(). So an ability input or output that passes validation on the server fails in the client, with ability_invalid_input or ability_invalid_output.

The cherry-pick conflicted in packages/abilities/CHANGELOG.md. On trunk, the entry sits under Unreleased above the 0.26.0 and 0.25.0 release headings, which do not exist on wp/7.2.

How?

git cherry-pick -x 5f63c28ac82d9261f81b40002b97b118df1ba116 onto wp/7.2.

Testing Instructions

  1. Run npm run test:unit -- packages/abilities/src/tests/validation.test.ts.
  2. Run npm run typecheck -- packages/abilities/tsconfig.json.

See #86845 for the full description and manual testing steps.

Testing Instructions for Keyboard

Not applicable: no UI changes.

Use of AI Tools

Claude Code was used to resolve the changelog conflict, check the cherry-pick against the original commit and draft this description. I reviewed the changes.

@peterwilsoncc peterwilsoncc added [Type] Bug An existing feature does not function as intended [Package] Abilities /packages/abilities labels Nov 24, 2026
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

🤖 PR meta 🤖

Preview in WordPress Playground Preview in Storybook

🎉 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: jorgefilipecosta <jorgefilipecosta@git.wordpress.org>
Co-authored-by: gziolo <gziolo@git.wordpress.org>
Co-authored-by: peterwilsoncc <peterwilsoncc@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: 0 B

Total Size: 9.08 MB

84a1ab2 Run

⚡ Performance

Show the results

Client side metrics exclude the server response time.

front-end-block-theme

Metric 54650cf wp/7.2 % Change
timeToFirstByte 52.4 ms +8.02% -3.05% 51.55 ms +2.33% -4.17% 1.65%
largestContentfulPaint 88 ms +9.09% -4.55% 88 ms +4.55% -4.55% 0%
lcpMinusTtfb 35.1 ms +3.56% -4.84% 34.25 ms +15.77% -5.26% 2.48%
wpBeforeTemplate 26.18 ms +8.14% -2.98% 25.54 ms +5.09% -2.66% 2.51%
wpTemplate 21.92 ms +5.02% -3.88% 21.42 ms +3.92% -3.92% 2.33%
wpTotal 47.98 ms +7.69% -3.27% 47.33 ms +2.37% -3.8% 1.37%
wpMemoryUsage 7.73 MB +0% -0% 7.69 MB +0% -0% 0.44%
wpDbQueries 16 +0% -0% 16 +0% -0% 0%

front-end-classic-theme

Metric 54650cf wp/7.2 % Change
timeToFirstByte 43.55 ms +5.28% -3.9% 42.75 ms +4.21% -4.91% 1.87%
largestContentfulPaint 98 ms +4.08% -2.04% 96 ms +2.08% -4.17% 2.08%
lcpMinusTtfb 54.35 ms +2.76% -3.13% 52.55 ms +4.95% -1.71% 3.43%
wpBeforeTemplate 22.61 ms +5.97% -0.88% 22.08 ms +6.02% -1.54% 2.4%
wpTemplate 16.94 ms +6.49% -5.02% 17.18 ms +3.55% -10.19% -1.4%
wpTotal 39.92 ms +5.51% -3.43% 39.45 ms +3.3% -5.17% 1.19%
wpMemoryUsage 6.42 MB +0% -0% 6.38 MB +0% -0% 0.54%
wpDbQueries 13 +0% -0% 13 +0% -0% 0%

media-processing

Metric 54650cf wp/7.2 % Change
mediaProcessingJpeg 402.37 ms +0.98% -0.89% 400.27 ms +0.49% -0.9% 0.52%
mediaProcessingAvif 5763.36 ms +0.25% -0.23% 5765.23 ms +0.26% -0.48% -0.03%
mediaProcessingJpegToAvif 3912.34 ms +0.18% -0.48% 3903.42 ms +0.06% -0.18% 0.23%

media-upload

Metric 54650cf wp/7.2 % Change
jpegUploadProcessing 1976.25 ms +2.34% -0.99% 1957.49 ms +0.84% -0.53% 0.96%
pngUploadProcessing 249.39 ms +8.5% -5.69% 252.72 ms +3.74% -20.3% -1.32%
largeJpegUploadProcessing 1956.15 ms +0.27% -0.29% 1956.64 ms +0.32% -0.51% -0.03%
multipleImageUploadProcessing 2049.86 ms +0.63% -0.7% 2061.24 ms +0.94% -0.57% -0.55%

post-editor

Metric 54650cf wp/7.2 % Change
serverResponse 318.31 ms +9.44% -3.7% 336.58 ms +2.3% -9.78% -5.43%
firstPaint 398.48 ms +3.17% -10.99% 397.91 ms +4.05% -14.38% 0.14%
domContentLoaded 904.47 ms +0.49% -1.48% 897.05 ms +0.95% -1.98% 0.83%
loaded 905.49 ms +0.49% -1.48% 898.12 ms +0.94% -1.98% 0.82%
firstContentfulPaint 398.48 ms +3.17% -10.99% 397.91 ms +4.05% -14.38% 0.14%
firstBlock 2801.35 ms +0.62% -0.8% 2774.74 ms +0.94% -0.46% 0.96%
type 15.55 ms +1.35% -2.64% 14.83 ms +4.25% -3.51% 4.86%
typeWithoutInspector 14.74 ms +5.97% -1.02% 15.11 ms +2.05% -4.24% -2.45%
typeWithTopToolbar 18.84 ms +6.95% -4.46% 20.04 ms +1.8% -6.79% -5.99%
typeContainer 7.36 ms +5.03% -4.21% 7 ms +1.57% -5.14% 5.14%
focus 97.78 ms +9.03% -3.21% 96.59 ms +4.87% -4.32% 1.23%
firstFocus 176.19 ms +0% -0% 187.36 ms +0% -0% -5.96%
selectAll 444.09 ms +2.04% -2.91% 472.6 ms +0.41% -4.34% -6.03%
listViewOpen 63.76 ms +16.31% -3.84% 62.7 ms +4.45% -10.3% 1.69%
inserterOpen 33.3 ms +12.16% -8.89% 33.05 ms +10.83% -2.18% 0.76%
inserterHover 9.96 ms +5.22% -7.33% 9.46 ms +13.11% -6.87% 5.29%
inserterSearch 7.11 ms +5.06% -6.19% 7.56 ms +0.79% -7.01% -5.95%
loadPatterns 522.5 ms +6.46% -1.47% 525.92 ms +1.93% -6.6% -0.65%
wpTotal 309.48 ms +9.33% -4.03% 327.83 ms +2.3% -10.07% -5.6%
wpMemoryUsage 14.76 MB +0% -0% 14.73 MB +0% -0% 0.22%
wpDbQueries 55 +0% -1.82% 55 +0% -1.82% 0%

site-editor

Metric 54650cf wp/7.2 % Change
serverResponse 557.55 ms +0.56% -5.14% 542.34 ms +1.51% -5.44% 2.8%
firstPaint 287.71 ms +20.11% -10.77% 268.99 ms +19.9% -9.18% 6.96%
domContentLoaded 1351.51 ms +1.38% -1.72% 1345.41 ms +0.97% -3.17% 0.45%
loaded 1352.88 ms +1.38% -1.73% 1346.59 ms +0.97% -3.17% 0.47%
firstContentfulPaint 541.35 ms +1.48% -1.23% 539.12 ms +5.03% -1.75% 0.41%
firstBlock 5198.65 ms +2.2% -1.27% 5176.36 ms +0.33% -1.21% 0.43%
type 19.38 ms +3.82% -3.82% 19.12 ms +7.53% -5.28% 1.36%
navigate 123.38 ms +9.04% -7.99% 130.4 ms +2.33% -3.15% -5.38%
loadPatterns 1363.42 ms +5.77% -2.55% 1307.31 ms +3.58% -4.82% 4.29%
loadPages 1064.04 ms +3.02% -0.79% 1077.93 ms +6.7% -0.88% -1.29%
wpTotal 547.43 ms +0.66% -5.14% 531.67 ms +1.66% -5.58% 2.96%
wpMemoryUsage 12.80 MB +0% -0% 12.76 MB +0% -0% 0.28%
wpDbQueries 44 +2.27% -0% 44 +2.27% -0% 0%

84a1ab2 Run

…hema format (#86845)

The changelog entry goes in a new `Bug Fixes` section under `Unreleased`, because `wp/7.2` does not have trunk's `0.25.0` and `0.26.0` release sections.

(cherry picked from commit 5f63c28)

Co-authored-by: jorgefilipecosta <jorgefilipecosta@git.wordpress.org>
Co-authored-by: gziolo <gziolo@git.wordpress.org>
@peterwilsoncc
peterwilsoncc marked this pull request as ready for review November 24, 2026 02:50
@peterwilsoncc

peterwilsoncc commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

The PHP Unit tests are currently failing on wp/7.2. I've asked advice on the PR that fixed it for trunk.

As @gziolo approved the trunk commit, provided the E2E tests pass after I backported #86278 I will approve this as the second committer and merge.

@peterwilsoncc
peterwilsoncc merged commit cff1e71 into wp/7.2 Nov 24, 2026
80 of 84 checks passed
@peterwilsoncc
peterwilsoncc deleted the backport/wp-7.2-86845 branch November 24, 2026 03:04
wporg-sync pushed a commit to WordPress/wordpress-develop that referenced this pull request Nov 24, 2026
This updates the pinned commit hash of the Gutenberg repository from `efd7722f89ebb8abfc3607fffdd86f5e34afbd9c` to `c5bdc7f4898ec98114cdccbe1cacec7a979b85cc` (head of the `wp/7.2` branch).

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

- Interactivity API: Align unsupported `data-wp-html` bindings with PHP (WordPress/gutenberg#86968) (WordPress/gutenberg#87015)
- E2E: Select the link preview by URL in the keyboard test (WordPress/gutenberg#87053) (WordPress/gutenberg#87102)
- Update the Update icon. (WordPress/gutenberg#87088) (WordPress/gutenberg#87139)
- Editor: Hide parent controls for non-hierarchical post types (WordPress/gutenberg#85679) (WordPress/gutenberg#87150)
- SearchableChipSelect: Use a single string for the chips toolbar label (WordPress/gutenberg#87219) (WordPress/gutenberg#87275)
- E2E Tests: Switch the theme before the other setup resets (WordPress/gutenberg#86278)
- Abilities: Accept a date-time without an offset in the `date-time` schema format (WordPress/gutenberg#86845) (WordPress/gutenberg#87311)
- Fix iOS tap into a quote jumping to the caret's block when it's off screen (WordPress/gutenberg#86923)
- Place the caret on a tap after the keyboard is swiped away (WordPress/gutenberg#87182)
- Writing flow: Keep the browser from deleting into a neighbouring block (WordPress/gutenberg#87188)
- Writing flow: Bring back the header iOS slides off screen, once the canvas stops scrolling (WordPress/gutenberg#87316)
- List: Drag a list item by its bullet again (WordPress/gutenberg#85801)
- MediaEdit: Show the image preview when the MIME type is empty (WordPress/gutenberg#87207) (WordPress/gutenberg#87326)
- Block Editor: Fix block hover outline flicker when moving between elements of a block (WordPress/gutenberg#86852) (WordPress/gutenberg#87328)

Developed in: #16187

Props peterwilsoncc, mamaduka, linewebdigital, abhishekfdd, oandregal, jorgefilipecosta.
See #66340.
Fixes #66428.

git-svn-id: https://develop.svn.wordpress.org/trunk@65751 602fd350-edb4-49c9-b593-d223f7449a82
wporg-sync pushed a commit to WordPress/WordPress that referenced this pull request Nov 24, 2026
This updates the pinned commit hash of the Gutenberg repository from `efd7722f89ebb8abfc3607fffdd86f5e34afbd9c` to `c5bdc7f4898ec98114cdccbe1cacec7a979b85cc` (head of the `wp/7.2` branch).

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

- Interactivity API: Align unsupported `data-wp-html` bindings with PHP (WordPress/gutenberg#86968) (WordPress/gutenberg#87015)
- E2E: Select the link preview by URL in the keyboard test (WordPress/gutenberg#87053) (WordPress/gutenberg#87102)
- Update the Update icon. (WordPress/gutenberg#87088) (WordPress/gutenberg#87139)
- Editor: Hide parent controls for non-hierarchical post types (WordPress/gutenberg#85679) (WordPress/gutenberg#87150)
- SearchableChipSelect: Use a single string for the chips toolbar label (WordPress/gutenberg#87219) (WordPress/gutenberg#87275)
- E2E Tests: Switch the theme before the other setup resets (WordPress/gutenberg#86278)
- Abilities: Accept a date-time without an offset in the `date-time` schema format (WordPress/gutenberg#86845) (WordPress/gutenberg#87311)
- Fix iOS tap into a quote jumping to the caret's block when it's off screen (WordPress/gutenberg#86923)
- Place the caret on a tap after the keyboard is swiped away (WordPress/gutenberg#87182)
- Writing flow: Keep the browser from deleting into a neighbouring block (WordPress/gutenberg#87188)
- Writing flow: Bring back the header iOS slides off screen, once the canvas stops scrolling (WordPress/gutenberg#87316)
- List: Drag a list item by its bullet again (WordPress/gutenberg#85801)
- MediaEdit: Show the image preview when the MIME type is empty (WordPress/gutenberg#87207) (WordPress/gutenberg#87326)
- Block Editor: Fix block hover outline flicker when moving between elements of a block (WordPress/gutenberg#86852) (WordPress/gutenberg#87328)

Developed in: WordPress/wordpress-develop#16187

Props peterwilsoncc, mamaduka, linewebdigital, abhishekfdd, oandregal, jorgefilipecosta.
See #66340.
Fixes #66428.
Built from https://develop.svn.wordpress.org/trunk@65751


git-svn-id: http://core.svn.wordpress.org/trunk@64781 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Package] Abilities /packages/abilities [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