- Timestamp:
- 11/18/2024 01:05:35 PM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/html-api/class-wp-html-processor.php
r59399 r59410 1192 1192 1193 1193 if ( null !== $doctype->public_identifier ) { 1194 $html .= " PUBLIC \"{$doctype->public_identifier}\""; 1194 $quote = str_contains( $doctype->public_identifier, '"' ) ? "'" : '"'; 1195 $html .= " PUBLIC {$quote}{$doctype->public_identifier}{$quote}"; 1195 1196 } 1196 1197 if ( null !== $doctype->system_identifier ) { … … 1198 1199 $html .= ' SYSTEM'; 1199 1200 } 1200 $html .= " \"{$doctype->system_identifier}\""; 1201 } 1201 $quote = str_contains( $doctype->system_identifier, '"' ) ? "'" : '"'; 1202 $html .= " {$quote}{$doctype->system_identifier}{$quote}"; 1203 } 1204 1202 1205 $html .= '>'; 1203 1206 break;
Note: See TracChangeset
for help on using the changeset viewer.