Changeset 53157 for trunk/src/wp-includes/blocks/site-logo.php
- Timestamp:
- 04/12/2022 03:10:30 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/site-logo.php
r52765 r53157 41 41 // Add an aria-label for informing that the page opens in a new tab. 42 42 $aria_label = 'aria-label="' . esc_attr__( '(Home link, opens in a new tab)' ) . '"'; 43 $custom_logo = str_replace( 'rel="home"', 'rel="home" target="' . $attributes['linkTarget']. '"' . $aria_label, $custom_logo );43 $custom_logo = str_replace( 'rel="home"', 'rel="home" target="' . esc_attr( $attributes['linkTarget'] ) . '"' . $aria_label, $custom_logo ); 44 44 } 45 45 46 46 $classnames = array(); 47 if ( ! empty( $attributes['className'] ) ) {48 $classnames[] = $attributes['className'];49 }50 51 47 if ( empty( $attributes['width'] ) ) { 52 48 $classnames[] = 'is-default-size';
Note: See TracChangeset
for help on using the changeset viewer.