Changeset 61009 for trunk/src/wp-includes/blocks/post-content.php
- Timestamp:
- 10/21/2025 07:11:53 AM (3 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/blocks/post-content.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/post-content.php
r59906 r61009 55 55 } 56 56 57 $tag_name = 'div'; 58 59 if ( ! empty( $attributes['tagName'] ) && tag_escape( $attributes['tagName'] ) === $attributes['tagName'] ) { 60 $tag_name = $attributes['tagName']; 61 } 62 57 63 $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => 'entry-content' ) ); 58 64 59 return ( 60 '<div ' . $wrapper_attributes . '>' . 61 $content . 62 '</div>' 65 return sprintf( 66 '<%1$s %2$s>%3$s</%1$s>', 67 $tag_name, 68 $wrapper_attributes, 69 $content 63 70 ); 64 71 }
Note: See TracChangeset
for help on using the changeset viewer.