Skip to content

Video Playlist: keep channel video links in the same tab and mark the video being viewed - #53502

Merged
heydemoura merged 1 commit into
trunkfrom
add/videopress-playlist-entry-site-links
Oct 13, 2026
Merged

heydemoura merged 1 commit into
trunkfrom
add/videopress-playlist-entry-site-links

Conversation

@heydemoura

@heydemoura heydemoura commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Proposed changes

  • When a playlist without a player links an entry to this site's own video page ( the channel feature's videopress_playlist_entry_url mapping ), the link opens in the same tab. Links to videopress.com still open a new tab.
  • On a channel video page, the entry of the video being viewed gets is-current and aria-current="true".
  • Adds Channel::is_site_url(), is_video_page() and queried_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.

  1. VideoPress Channel: only open a video page for a video uploaded to this site #53501 — VideoPress Channel: only open a video page for a video uploaded to this site
    → 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
  2. VideoPress Channel: add the data layer for the channel blocks #53503 — VideoPress Channel: add the data layer for the channel blocks
  3. VideoPress Channel: a page per playlist #53504 — VideoPress Channel: a page per playlist
  4. Latest Videos Playlist: sorting, search, length filter and pages #53505 — Latest Videos Playlist: sorting, search, length filter and pages
  5. VideoPress: add a Channel Details block #53506 — VideoPress: add a Channel Details block
  6. VideoPress: add a Video Details block and let the video block play the newest upload #53507 — VideoPress: add a Video Details block and let the video block play the newest upload
  7. VideoPress: add a Playlist Details block #53508 — VideoPress: add a Playlist Details block
  8. VideoPress: add an Episode Navigation block #53509 — VideoPress: add an Episode Navigation block
  9. VideoPress Channel blocks: empty states #53510 — VideoPress Channel blocks: empty states

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.
  • With a theme declaring add_theme_support( 'videopress-channel' ), add a Latest Videos Playlist block with the player hidden: entries link to /videopress?v=… without target=_blank; on a video page the current video's entry is highlighted.

🤖 Generated with Claude Code

@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.

  • To test on WoA, go to the Plugins menu on a WoA dev site. Click on the "Upload" button and follow the upgrade flow to be able to upload, install, and activate the Jetpack Beta plugin. Once the plugin is active, go to Jetpack > Jetpack Beta, select your plugin (Jetpack), and enable the add/videopress-playlist-entry-site-links branch.
  • To test on Simple, run the following command on your sandbox:
bin/jetpack-downloader test jetpack add/videopress-playlist-entry-site-links

Interested in more tips and information?

  • In your local development environment, use the jetpack rsync command to sync your changes to a WoA dev blog.
  • Read more about our development workflow here: PCYsg-eg0-p2
  • Figure out when your changes will be shipped to customers here: PCYsg-eg5-p2

@github-actions github-actions Bot added [Package] VideoPress [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Plugin] VideoPress A standalone plugin to add high-quality VideoPress videos to your site. [Tests] Includes Tests labels Oct 12, 2026
@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Thank you for your PR!

When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:

  • ✅ Include a description of your PR changes.
  • ✅ Add a "[Status]" label (In Progress, Needs Review, ...).
  • ✅ Add testing instructions.
  • ✅ Specify whether this PR includes any changes to data or privacy.
  • ✅ Add changelog entries to affected projects

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:

  1. Ensure all required checks appearing at the bottom of this PR are passing.
  2. Make sure to test your changes on all platforms that it applies to. You're responsible for the quality of the code you ship.
  3. You can use GitHub's Reviewers functionality to request a review.
  4. When it's reviewed and merged, you will be pinged in Slack to deploy the changes to WordPress.com simple once the build is done.

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.

@jp-launch-control

jp-launch-control Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Code Coverage Summary

Coverage changed in 2 files.

File Coverage Δ% Δ Uncovered
projects/packages/videopress/src/class-channel.php 95/99 (95.96%) -0.78% 1 ❤️‍🩹
projects/packages/videopress/src/class-initializer.php 502/559 (89.80%) 0.15% 0 💚

Full summary · PHP report · JS report

Coverage check overridden by I don't care about code coverage for this PR Use this label to ignore the check for insufficient code coveage. .

Base automatically changed from fix/videopress-channel-guid-lookup to trunk October 12, 2026 22:56
@heydemoura
heydemoura marked this pull request as ready for review October 13, 2026 20:15
@heydemoura
heydemoura requested a review from a team as a code owner October 13, 2026 20:15
@heydemoura heydemoura added the I don't care about code coverage for this PR Use this label to ignore the check for insufficient code coveage. label Oct 13, 2026
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>
@heydemoura
heydemoura force-pushed the add/videopress-playlist-entry-site-links branch from 47561ed to fda930c Compare October 13, 2026 21:47
@heydemoura
heydemoura merged commit 9bc2aeb into trunk Oct 13, 2026
110 of 111 checks passed
@heydemoura
heydemoura deleted the add/videopress-playlist-entry-site-links branch October 13, 2026 22:51
@github-actions github-actions Bot added the [Status] UI Changes Add this to PRs that change the UI so documentation can be updated. label Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Feature] VideoPress A feature to help you upload and insert videos on your site. I don't care about code coverage for this PR Use this label to ignore the check for insufficient code coveage. [Package] VideoPress [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Plugin] VideoPress A standalone plugin to add high-quality VideoPress videos to your site. [Status] UI Changes Add this to PRs that change the UI so documentation can be updated. [Tests] Includes Tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant