Fields: Add post content information field#76309
Conversation
|
Size Change: +406 B (+0.01%) Total Size: 6.89 MB
ℹ️ View Unchanged
|
|
Flaky tests detected in 405d417. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/22895674055
|
This comment was marked as resolved.
This comment was marked as resolved.
|
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. |
| const postContent = useSelect( | ||
| ( select ) => { | ||
| // When postId/postType props are provided, read from core-data directly. | ||
| if ( postId && postType ) { |
There was a problem hiding this comment.
This is the main changes in this component and the change of the returned single value, instead of an object with one prop.
jameskoster
left a comment
There was a problem hiding this comment.
Appears to be working as advertised :)
packages/edit-site/src/components/post-list/quick-edit-modal.js
Outdated
Show resolved
Hide resolved
a0822bd to
a78d390
Compare
oandregal
left a comment
There was a problem hiding this comment.
There's one small bit I'd like us to address, but this sounds good. Thanks for iterating so quickly!
What?
Resolves: #76239
This PR adds the post content and last edited information in the new DataForm powered Post summary and in Quick edit in Site editor, as a new post content info
readonlyfield.Testing Instructions Post editor
Editor Inspector: Use DataFormexperiment in/wp-admin/admin.php?page=gutenberg-experiments.Testing Instructions Quick edit in site editor
pagesand select quick edit for a single itemScreenshots or screencast
Post editor
Site editor Quick edit