Skip to content

Commit d304b3f

Browse files
committed
Fix lint
1 parent 52221ec commit d304b3f

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

includes/class-protected-video-public.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,20 @@ class Protected_Video_Public {
1919
* Usage example: [protected_video url="https://youtu.be/aqz-KE-bpKQ" service="youtube"]
2020
*
2121
* @param array<string, mixed>|string $atts Shortcode attributes.
22-
* @param string|null $content Optional shortcode content.
23-
* @param string $tag Shortcode tag.
22+
* @param string|null $content Optional shortcode content.
23+
* @param string $tag Shortcode tag.
2424
* @return string HTML output for the shortcode.
2525
*/
2626
public function render_shortcode( $atts, $content = null, $tag = '' ) {
27+
unset( $content );
28+
2729
$atts = shortcode_atts(
2830
array(
2931
'url' => '',
3032
'service' => '',
3133
),
3234
$atts,
33-
'protected_video'
35+
$tag ? $tag : 'protected_video'
3436
);
3537

3638
$url = trim( $atts['url'] );

0 commit comments

Comments
 (0)