Changeset 48060
- Timestamp:
- 06/16/2020 04:55:45 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-template.php
r47848 r48060 455 455 function post_class( $class = '', $post_id = null ) { 456 456 // Separates classes with a single space, collates classes for post DIV. 457 echo 'class="' . join( ' ', get_post_class( $class, $post_id) ) . '"';457 echo 'class="' . esc_attr( join( ' ', get_post_class( $class, $post_id ) ) ) . '"'; 458 458 } 459 459 … … 591 591 function body_class( $class = '' ) { 592 592 // Separates class names with a single space, collates class names for body element. 593 echo 'class="' . join( ' ', get_body_class( $class) ) . '"';593 echo 'class="' . esc_attr( join( ' ', get_body_class( $class ) ) ) . '"'; 594 594 } 595 595
Note: See TracChangeset
for help on using the changeset viewer.