Skip to content

Commit

Permalink
Shortcode: Fix the YouTube URL for the /embed one (#39502)
Browse files Browse the repository at this point in the history
* Shortcode: Fix the YouTube URL for the /embed one

* changelog
  • Loading branch information
arthur791004 authored Sep 24, 2024
1 parent 671d537 commit 4c63c2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions projects/plugins/jetpack/changelog/fix-youtube-embed-link
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: bugfix

Shortcode: Fix the YouTube URL for the /embed one
2 changes: 0 additions & 2 deletions projects/plugins/jetpack/modules/shortcodes/youtube.php
Original file line number Diff line number Diff line change
Expand Up @@ -550,8 +550,6 @@ function wpcom_youtube_embed_crazy_url_init() {
return;
}

// Unregister the Core's one.
wp_embed_unregister_handler( 'youtube_embed_url' );
// Register the custom handler to provide the better support for the private video.
wp_embed_register_handler( 'wpcom_youtube_embed_crazy_url', wpcom_youtube_get_regex(), 'wpcom_youtube_embed_crazy_url' );
}
Expand Down

0 comments on commit 4c63c2e

Please sign in to comment.