Skip to content

Commit

Permalink
Remove the unused tag parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
ryelle committed Sep 11, 2024
1 parent 450e02d commit 84caaed
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mu-plugins/plugin-tweaks/youtube-shortcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@
*
* @param array $attr Shortcode attributes array, can be empty if the original arguments string cannot be parsed.
* @param string $content Content inside shortcode tags.
* @param string $tag Shortcode name.
*
* @return string HTML code for iframe embed.
*/
function render( $attr, $content, $tag ) {
function render( $attr, $content ) {
// Short out early if the content is not a valid URL.
// Returns null if content is not a URL at all.
$host = wp_parse_url( $content, PHP_URL_HOST );
Expand Down

0 comments on commit 84caaed

Please sign in to comment.