Skip to content

Fix: media picker in Playground#349

Merged
priethor merged 1 commit into
mainfrom
priethor/docs/0-1-0-skip-auth
Jun 3, 2026
Merged

Fix: media picker in Playground#349
priethor merged 1 commit into
mainfrom
priethor/docs/0-1-0-skip-auth

Conversation

@priethor

@priethor priethor commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator

What

Part of #284.

Fixes the cover and icon image picker when Cortext is running in WordPress Playground.

The picker now opens the media library in Playground and still works from the block editor iframe.

Why

Playground wraps wp-admin in its own iframe, so the old lookup could end up checking the wrong window for wp.media.

Testing Instructions

  1. Open Cortext in WordPress Playground: https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/Automattic/cortext/main/playground/blueprint.json
  2. Click Add cover and confirm the media library opens.
  3. Click Add icon, switch to Upload, and confirm Open media library opens the picker.

@priethor priethor added the type: bug Bug fix. label Jun 3, 2026
@priethor priethor marked this pull request as ready for review June 3, 2026 08:55
@priethor priethor changed the title Fix media picker in Playground Fix: media picker in Playground Jun 3, 2026
@priethor priethor merged commit 4234a7f into main Jun 3, 2026
13 checks passed
@priethor priethor deleted the priethor/docs/0-1-0-skip-auth branch June 3, 2026 09:05
@github-actions github-actions Bot added this to the 0.1.1 milestone Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug Bug fix.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant