Changeset 48749 for trunk/src/wp-includes/general-template.php
- Timestamp:
- 08/07/2020 03:24:10 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/general-template.php
r48674 r48749 1022 1022 ); 1023 1023 1024 if ( is_front_page() ) { 1024 $unlink_homepage_logo = (bool) get_theme_support( 'custom-logo', 'unlink-homepage-logo' ); 1025 1026 if ( $unlink_homepage_logo && is_front_page() && ! is_paged() ) { 1025 1027 /* 1026 1028 * If on the home page, set the logo alt attribute to an empty string, … … 1056 1058 $image = wp_get_attachment_image( $custom_logo_id, 'full', false, $custom_logo_attr ); 1057 1059 1058 if ( is_front_page() ) {1060 if ( $unlink_homepage_logo && is_front_page() && ! is_paged() ) { 1059 1061 // If on the home page, don't link the logo to home. 1060 1062 $html = sprintf( … … 1063 1065 ); 1064 1066 } else { 1067 $aria_current = is_front_page() && ! is_paged() ? ' aria-current="page"' : ''; 1068 1065 1069 $html = sprintf( 1066 '<a href="%1$s" class="custom-logo-link" rel="home" >%2$s</a>',1070 '<a href="%1$s" class="custom-logo-link" rel="home"%2$s>%3$s</a>', 1067 1071 esc_url( home_url( '/' ) ), 1072 $aria_current, 1068 1073 $image 1069 1074 );
Note: See TracChangeset
for help on using the changeset viewer.