We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7001386 commit 49839cbCopy full SHA for 49839cb
php/class-delivery.php
@@ -1376,6 +1376,12 @@ public function rebuild_tag( $tag_element ) {
1376
// Setup new tag.
1377
$replace = HTML::build_tag( $tag_element['tag'], $tag_element['atts'] );
1378
1379
+ // If the original tag used single quotes, we need to use them in the new tag.
1380
+ $single_quotes = (bool) preg_match( '/=\s*\'/', $tag_element['original'] );
1381
+ if ( $single_quotes ) {
1382
+ $replace = str_replace( '"', "'", $replace );
1383
+ }
1384
+
1385
/**
1386
* Filter the new built tag element.
1387
*
0 commit comments