- Timestamp:
- 11/18/2024 01:37:52 PM (13 months ago)
- Location:
- branches/6.7
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/html-api/class-wp-html-processor.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/6.7
-
branches/6.7/src/wp-includes/html-api/class-wp-html-processor.php
r59401 r59411 1171 1171 1172 1172 if ( null !== $doctype->public_identifier ) { 1173 $html .= " PUBLIC \"{$doctype->public_identifier}\""; 1173 $quote = str_contains( $doctype->public_identifier, '"' ) ? "'" : '"'; 1174 $html .= " PUBLIC {$quote}{$doctype->public_identifier}{$quote}"; 1174 1175 } 1175 1176 if ( null !== $doctype->system_identifier ) { … … 1177 1178 $html .= ' SYSTEM'; 1178 1179 } 1179 $html .= " \"{$doctype->system_identifier}\""; 1180 } 1180 $quote = str_contains( $doctype->system_identifier, '"' ) ? "'" : '"'; 1181 $html .= " {$quote}{$doctype->system_identifier}{$quote}"; 1182 } 1183 1181 1184 $html .= '>'; 1182 1185 break;
Note: See TracChangeset
for help on using the changeset viewer.