Repository navigation
Video Playlist: keep channel video links in the same tab and mark the video being viewed - #53502
Conversation
|
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 Follow this PR Review Process:
If you have questions about anything, reach out in #jetpack-developers for guidance! Jetpack plugin: No scheduled milestone found for this plugin. If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Videopress plugin: No scheduled milestone found for this plugin. If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
Code Coverage SummaryCoverage changed in 2 files.
Full summary · PHP report · JS report Coverage check overridden by
I don't care about code coverage for this PR
|
Video Playlist entries without a player open the URL the videopress_playlist_entry_url filter returns. When that is a page on this site ( a channel video page ), the link no longer opens a new tab, and the entry of the video being viewed is marked current. videopress.com links keep the new tab. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
47561ed to
fda930c
Compare
Proposed changes
videopress_playlist_entry_urlmapping ), the link opens in the same tab. Links to videopress.com still open a new tab.is-currentandaria-current="true".Channel::is_site_url(),is_video_page()andqueried_guid().Part 2 of 10 of a stacked series
The VideoPress channel theme support is split so each change can be reviewed, tested and deployed on its own. Each PR is based on the previous one; merge them in order.
→ 2. Video Playlist: keep channel video links in the same tab and mark the video being viewed #53502 — Video Playlist: keep channel video links in the same tab and mark the video being viewed
Related product discussion/links
Does this pull request change what data or activity we track or use?
No.
Testing instructions
jp test php packages/videopress.add_theme_support( 'videopress-channel' ), add a Latest Videos Playlist block with the player hidden: entries link to/videopress?v=…withouttarget=_blank; on a video page the current video's entry is highlighted.🤖 Generated with Claude Code