Skip to content

Align oEmbed preview handling with upstream#439

Merged
cbravobernal merged 1 commit into
trunkfrom
oembed-upstream-parity
Jun 6, 2026
Merged

Align oEmbed preview handling with upstream#439
cbravobernal merged 1 commit into
trunkfrom
oembed-upstream-parity

Conversation

@cbravobernal
Copy link
Copy Markdown
Contributor

Aligns the oEmbed AJAX preview path with the upstream ACF 6.8.3 approach while keeping SCF-specific copy and tests.

  • Preserves valid front-end preview requests while restricting oEmbed discovery for visitors and users without content-authoring capability.
  • Adds the upstream oEmbed field-type guard before preview generation.
  • Updates the existing oEmbed AJAX tests to verify discovery behavior for anonymous, subscriber, administrator, and filter-overridden requests.
  • Updates the 6.8.6 docs/readme wording to match the refined behavior.

Closes N/A

Use of AI Tools

This pull request was authored with assistance from OpenAI Codex. The generated changes were reviewed, tested, and adjusted before submission.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 6, 2026

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.

Core Committers: Use this line as a base for the props when committing in SVN:

Props cbravobernal.

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

@cbravobernal cbravobernal force-pushed the oembed-upstream-parity branch from 8cfbfed to 4edf997 Compare June 6, 2026 08:35
@cbravobernal cbravobernal merged commit 4bb9b7c into trunk Jun 6, 2026
20 checks passed
@cbravobernal cbravobernal deleted the oembed-upstream-parity branch June 6, 2026 08:53
@cbravobernal cbravobernal self-assigned this Jun 6, 2026
@cbravobernal cbravobernal added the [Type] Bug Something isn't working label Jun 6, 2026
@cbravobernal cbravobernal added this to the 6.8.6 milestone Jun 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant