Repository navigation
Conversation
Shows a read-only preview and an explanation in place of core's missing block warning, so the block's markup is kept as is. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With videopress/video disallowed, Jetpack converts each block to core/video on open, dropping its VideoPress settings and marking the post as changed. Warns if the filter goes missing while Jetpack VideoPress is active, in case it was renamed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Runs the initializer after plugin scripts load and before the first render; removing the filter later doesn't stop the conversion. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The separate notice card read as its own block, apart from the video. A themed caption joined to the video reads as one unit and follows the theme's colors. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
XCFramework BuildThis PR's XCFramework is available for testing. Add the following to your .package(url: "https://github.com/wordpress-mobile/GutenbergKit", branch: "pr-build/941")Built from 79d5eba |
The sandbox sized itself to its content, which ran taller than the player and left a black band under the video. Core embeds size by aspect ratio for the same reason. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Users can check which video a block holds. As in core embeds, the first tap selects the block and later taps reach the player. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Jetpack's v6-to-v5 conversion can't be present without plugins, so loading the chunk and its stylesheet only delayed first render. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Core-data caches a failed oEmbed fetch, so a flaky connection left an empty box until the editor reloaded. Mirrors core embeds' message and Try again button, reusing their translated strings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Themes such as Twenty Twenty-One center figcaptions, which split the notice text from its icon. Colors and fonts still follow the theme. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Ref CMM-713.
When the editor doesn't allow
videopress/video, the block parses ascore/missingand Jetpack'svideopress/jetpack-convert-from-v6-to-v5filter replaces it withcore/videoon open. That drops the block's VideoPress settings and marks an untouched post as changed, which WP-Android saves without asking.This change:
withFiltersrenders once more with the old filter.Nothing changes when the editor allows
videopress/video.When the preview can't load (web editor):
Testing instructions
videopress/videoblock between two paragraphs (e.g. in WP Admin).videopress/videoblock comment is unchanged.guidto one that doesn't exist (e.g.zzzzzzzz) and reopen the post. The block shows "Sorry, this content could not be embedded." with Try again.Additional AI-generated details
Verified on the Android emulator and iOS simulator with the bundled editor, against a Simple site and an Atomic site:
core/missing(originalName: videopress/video), Jetpack's conversion filter is gone, and Jetpack'score/videoextension is intact.getEditedPostContent()is byte-identical to the server's raw content;isEditedPostDirty()andgetTitleAndContent().changedarefalse; Save is disabled.videopress/upload-jwtand tus (rest/v1.1/video-uploads); iOS doesn't expose them to the page.guidsends no request and shows the message without the button. Core-data caches a failed preview, so before this change the box stayed empty until the editor reloaded.Known limitation: a private video's preview shows VideoPress's "This video is private" overlay, because the editor never hands the player a playback token.
core/videopreviews behave the same in GBK today; fixing it needs Jetpack changes and is out of scope.🤖 Generated with Claude Code