Skip to content

Editorial Updates: Fix missed updates for Pullquote and other value-based blocks - #930

Merged
dkotter merged 5 commits into
WordPress:developfrom
yogeshbhutkar:fix/editorial-updates-misses-pullquote
Aug 13, 2026
Merged

Editorial Updates: Fix missed updates for Pullquote and other value-based blocks#930
dkotter merged 5 commits into
WordPress:developfrom
yogeshbhutkar:fix/editorial-updates-misses-pullquote

Conversation

@yogeshbhutkar

@yogeshbhutkar yogeshbhutkar commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

What, Why, and How?

The Pullquote block can receive notes through the Generate Editorial Notes flow, but clicking Apply Editorial Updates generates a successful response without updating the block.

This happens because Pullquote stores its primary text in the value attribute (Ref). Editorial Updates previously handled Image blocks through alt and defaulted all other supported blocks to content, causing updates for Pullquote blocks to be written to the wrong attribute.

This PR detects whether a block uses value and writes the generated update to that attribute when present. This fixes Pullquote updates and supports other value-based blocks in the future.

Use of AI Tools

AI assistance: Yes
Tool(s): Codex
Model(s): GPT-5.6
Used for: Code reviews and drafting the e2e test.

Testing Instructions

  1. Enable the Editorial Notes and Editorial Updates experiments.
  2. Create or edit a post.
  3. Add a Pullquote block containing some text.
  4. Generate an editorial note for the Pullquote.
  5. Apply Editorial Updates.
  6. Confirm that the Pullquote text is updated.
  7. Save and reload the post.
  8. Confirm that the updated Pullquote content persists.

Screencast

Before

before.mov

After

after.mov

Changelog Entry

Fixed - Apply editorial updates to blocks that store editable text in the value attribute.

Open WordPress Playground Preview

@codecov

codecov Bot commented Aug 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.84%. Comparing base (2274329) to head (b62b2bb).

Additional details and impacted files
@@            Coverage Diff             @@
##             develop     #930   +/-   ##
==========================================
  Coverage      75.84%   75.84%           
  Complexity      3021     3021           
==========================================
  Files            132      132           
  Lines          11966    11966           
==========================================
  Hits            9076     9076           
  Misses          2890     2890           
Flag Coverage Δ
unit 75.84% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@yogeshbhutkar
yogeshbhutkar marked this pull request as ready for review August 12, 2026 07:41
@yogeshbhutkar
yogeshbhutkar requested a review from a team August 12, 2026 07:41
@github-actions

github-actions Bot commented Aug 12, 2026

Copy link
Copy Markdown

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 props-bot label.

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: yogeshbhutkar <yogeshbhutkar@git.wordpress.org>
Co-authored-by: dkotter <dkotter@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@dkotter dkotter added this to the 1.3.0 milestone Aug 12, 2026
* @param block The block to inspect.
* @return The editable text attribute.
*/
function getEditableTextAttribute( block: Block ) {

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.

Couple suggestions:

  1. The getBlockText function we use elsewhere defaults to content and then value. Here we default to value then content. I think ideal would be to standardize the two so there's never a mismatch
  2. I'd recommend moving this function into the src/utils/blocks.ts file alongside the other block functions (like getBlockText)

@dkotter dkotter mentioned this pull request Aug 12, 2026
48 tasks
@jeffpaul jeffpaul moved this from Triage to In progress in WordPress AI Roadmap Aug 12, 2026
@yogeshbhutkar
yogeshbhutkar force-pushed the fix/editorial-updates-misses-pullquote branch from 5a0143e to 9851d44 Compare August 13, 2026 06:15
@yogeshbhutkar
yogeshbhutkar requested a review from dkotter August 13, 2026 07:14
@dkotter
dkotter merged commit 60ad19f into WordPress:develop Aug 13, 2026
25 checks passed
@github-project-automation github-project-automation Bot moved this from In progress to Done in WordPress AI Roadmap Aug 13, 2026
@yogeshbhutkar
yogeshbhutkar deleted the fix/editorial-updates-misses-pullquote branch August 14, 2026 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants

Sponsor
SponsoredKunjungi sekarang
Promo