Core Data: Fix 'useEntityProp' for raw attributes#77120
Conversation
|
Size Change: -14 B (0%) Total Size: 7.74 MB 📦 View Changed
ℹ️ View Unchanged
|
|
Flaky tests detected in cff4448. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/24187601080
|
|
Should we add an e2e test for the title, or add to an existing one? |
2b38ac5 to
cff4448
Compare
|
Done. New e2e test is here :) |
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org> Co-authored-by: ntsekouras <ntsekouras@git.wordpress.org> Co-authored-by: ellatrix <ellatrix@git.wordpress.org> Co-authored-by: andreawetzel <awetz583@git.wordpress.org>
|
I just cherry-picked this PR to the wp/7.0 branch to get it included in the next release: 5991c7d |
What?
Closes #77106.
This is a follow-up to #76106.
PR fixes value return type for raw attributes. These entity properties are returned as objects from the REST API, but
useEntityPropshould returnvalue.rawor edited value. Since revisions can't be edited, we'll try to return raw when possible.Testing Instructions
Testing Instructions for Keyboard
Same.
Use of AI Tools
None.