Changeset 49226 for trunk/src/wp-includes/blocks/latest-comments.php
- Timestamp:
- 10/20/2020 01:33:02 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/latest-comments.php
r49135 r49226 130 130 $classnames[] = 'no-comments'; 131 131 } 132 $ class = esc_attr( implode( ' ', $classnames) );132 $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => implode( ' ', $classnames ) ) ); 133 133 134 134 return ! empty( $comments ) ? sprintf( 135 '<ol class="%1$s">%2$s</ol>',136 $ class,135 '<ol %1$s>%2$s</ol>', 136 $wrapper_attributes, 137 137 $list_items_markup 138 138 ) : sprintf( 139 '<div class="%1$s">%2$s</div>',140 $ class,139 '<div %1$s>%2$s</div>', 140 $wrapper_attributes, 141 141 __( 'No comments to show.' ) 142 142 );
Note: See TracChangeset
for help on using the changeset viewer.