Skip to content

Commit

Permalink
Support urlArgs in parseEVL
Browse files Browse the repository at this point in the history
Limit explode to 1 part, with the remaining string being the value.
  • Loading branch information
zealvurte authored Sep 4, 2024
1 parent 3d81247 commit 2a1afdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/EmbedVideo.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public static function parseEVL( Parser $parser, PPFrame $frame, array $args ):
$value = trim( $frame->expand( $arg ) );

if ( str_contains( $value, '=' ) ) {
$parts = array_map( 'trim', explode( '=', $value ) );
$parts = array_map( 'trim', explode( '=', $value, 1 ) );

$expandedArgs[$parts[0]] = $parts[1] ?? null;
} else {
Expand Down

0 comments on commit 2a1afdd

Please sign in to comment.