- Timestamp:
- 03/03/2025 06:43:08 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwenty/inc/template-tags.php
r56548 r59907 41 41 'logo' => '%1$s<span class="screen-reader-text">%2$s</span>', 42 42 'logo_class' => 'site-logo', 43 'title' => '<a href="%1$s" >%2$s</a>',43 'title' => '<a href="%1$s" rel="home">%2$s</a>', 44 44 'title_class' => 'site-title', 45 45 'home_wrap' => '<h1 class="%1$s">%2$s</h1>', … … 64 64 $classname = $args['logo_class']; 65 65 } else { 66 $contents = sprintf( $args['title'], esc_url( get_home_url( null, '/' ) ), esc_html( $site_title ) ); 66 $contents = sprintf( $args['title'], esc_url( get_home_url( null, '/' ) ), esc_html( $site_title ) ); 67 if ( 68 ( is_front_page() || is_home() && ( (int) get_option( 'page_for_posts' ) !== get_queried_object_id() ) ) 69 && ! is_paged() 70 && $args['title'] === $defaults['title'] 71 ) { 72 $contents = str_replace( ' rel=', ' aria-current="page" rel=', $contents ); 73 } 67 74 $classname = $args['title_class']; 68 75 }
Note: See TracChangeset
for help on using the changeset viewer.