Changeset 53157 for trunk/src/wp-includes/blocks/post-author.php
- Timestamp:
- 04/12/2022 03:10:30 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/post-author.php
r52069 r53157 31 31 $byline = ! empty( $attributes['byline'] ) ? $attributes['byline'] : false; 32 32 $classes = array_merge( 33 isset( $attributes['className'] ) ? array( $attributes['className'] ) : array(),34 33 isset( $attributes['itemsJustification'] ) ? array( 'items-justified-' . $attributes['itemsJustification'] ) : array(), 35 34 isset( $attributes['textAlign'] ) ? array( 'has-text-align-' . $attributes['textAlign'] ) : array() … … 41 40 ( ! empty( $attributes['showAvatar'] ) ? '<div class="wp-block-post-author__avatar">' . $avatar . '</div>' : '' ) . 42 41 '<div class="wp-block-post-author__content">' . 43 ( ! empty( $byline ) ? '<p class="wp-block-post-author__byline">' . $byline. '</p>' : '' ) .42 ( ! empty( $byline ) ? '<p class="wp-block-post-author__byline">' . esc_html( $byline ) . '</p>' : '' ) . 44 43 '<p class="wp-block-post-author__name">' . get_the_author_meta( 'display_name', $author_id ) . '</p>' . 45 44 ( ! empty( $attributes['showBio'] ) ? '<p class="wp-block-post-author__bio">' . get_the_author_meta( 'user_description', $author_id ) . '</p>' : '' ) .
Note: See TracChangeset
for help on using the changeset viewer.