- Timestamp:
- 06/11/2026 10:17:13 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/html-api/class-wp-html-processor.php
r62439 r62492 1429 1429 $qualified_attribute_name = str_replace( "\x00", "\u{FFFD}", $qualified_attribute_name ); 1430 1430 $qualified_attribute_name = wp_scrub_utf8( $qualified_attribute_name ); 1431 /** 1432 * Spaces only appear via the foreign attribute adjustment table. 1433 * @see WP_HTML_Tag_Processor::get_qualified_attribute_name() 1434 */ 1435 $serialized_attribute_name = str_replace( ' ', ':', $qualified_attribute_name ); 1431 1436 if ( isset( $seen_attribute_names[ $qualified_attribute_name ] ) ) { 1432 1437 continue; … … 1437 1442 if ( 1438 1443 $previous_attribute_was_true && 1439 isset( $ qualified_attribute_name[0] ) &&1440 '=' === $ qualified_attribute_name[0]1444 isset( $serialized_attribute_name[0] ) && 1445 '=' === $serialized_attribute_name[0] 1441 1446 ) { 1442 1447 $html .= '=""'; 1443 1448 } 1444 1449 1445 $html .= " {$ qualified_attribute_name}";1450 $html .= " {$serialized_attribute_name}"; 1446 1451 $value = $this->get_attribute( $attribute_name ); 1447 1452
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)