Skip to content

Conversation

@dhananjaykuber
Copy link
Contributor

Closes #56367

What?

Enables MediaReplaceFlow component for Post Featured Image blocks within Query Loop contexts, allowing users to replace featured images directly from homepage layouts without navigating to individual posts.

Why?

Currently, Post Featured Image blocks placed within Query Loops have no editing options available, forcing users to navigate to individual posts to change featured images. This creates significant workflow friction for users building homepage layouts where featured images are key visual elements.

How?

The implementation makes a targeted change to enable MediaReplaceFlow in Query Loop contexts.

Testing Instructions

  • Create a new page and insert a Query Loop block
  • Configure the Query Loop to show posts (use default settings)
  • Within the Query Loop pattern, add a Post Featured Image block
  • Verify the MediaReplaceFlow controls appear in the block toolbar when the image is selected
  • Click the "Replace featured image" button and test:
    • Upload a new image from computer
    • Select from Media Library
    • Insert from URL
  • Verify the featured image updates correctly in both the editor and frontend
  • Check that only the specific post's featured image changed (not other posts in the loop)

Screenshots or screencast

screen-capture.10.webm

@github-actions
Copy link

Warning: Type of PR label mismatch

To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.

  • Type-related labels to choose from: [Type] Automated Testing, [Type] Breaking Change, [Type] Bug, [Type] Build Tooling, [Type] Code Quality, [Type] Copy, [Type] Developer Documentation, [Type] Enhancement, [Type] Experimental, [Type] Feature, [Type] New API, [Type] Task, [Type] Technical Prototype, [Type] Performance, [Type] Project Management, [Type] Regression, [Type] Security, [Type] WP Core Ticket, Backport from WordPress Core, Gutenberg Plugin.
  • Labels found: .

Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task.

@github-actions
Copy link

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: dhananjaykuber <[email protected]>
Co-authored-by: richtabor <[email protected]>
Co-authored-by: scruffian <[email protected]>

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

@t-hamano t-hamano added [Type] Enhancement A suggestion for improvement. [Block] Post Featured Image Affects the Post Featured Image Block labels Jul 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Block] Post Featured Image Affects the Post Featured Image Block [Type] Enhancement A suggestion for improvement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Post Featured Image: Add editing options

2 participants