equal
deleted
inserted
replaced
29 if ( isset( $attributes['level'] ) ) { |
29 if ( isset( $attributes['level'] ) ) { |
30 $tag_name = 0 === $attributes['level'] ? 'p' : 'h' . (int) $attributes['level']; |
30 $tag_name = 0 === $attributes['level'] ? 'p' : 'h' . (int) $attributes['level']; |
31 } |
31 } |
32 |
32 |
33 if ( $attributes['isLink'] ) { |
33 if ( $attributes['isLink'] ) { |
34 $aria_current = is_home() || ( is_front_page() && 'page' === get_option( 'show_on_front' ) ) ? ' aria-current="page"' : ''; |
34 $aria_current = ! is_paged() && ( is_front_page() || is_home() && ( (int) get_option( 'page_for_posts' ) !== get_queried_object_id() ) ) ? ' aria-current="page"' : ''; |
35 $link_target = ! empty( $attributes['linkTarget'] ) ? $attributes['linkTarget'] : '_self'; |
35 $link_target = ! empty( $attributes['linkTarget'] ) ? $attributes['linkTarget'] : '_self'; |
36 |
36 |
37 $site_title = sprintf( |
37 $site_title = sprintf( |
38 '<a href="%1$s" target="%2$s" rel="home"%3$s>%4$s</a>', |
38 '<a href="%1$s" target="%2$s" rel="home"%3$s>%4$s</a>', |
39 esc_url( home_url() ), |
39 esc_url( home_url() ), |