Make WordPress Core

Ticket #49438: h1-is_home.patch

File h1-is_home.patch, 511 bytes (added by SGr33n, 5 years ago)
  • twentytwenty/inc/template-tags.php

    old new  
    4242                'title_class' => 'site-title',
    4343                'home_wrap'   => '<h1 class="%1$s">%2$s</h1>',
    4444                'single_wrap' => '<div class="%1$s faux-heading">%2$s</div>',
    45                 'condition'   => ( is_front_page() || is_home() ) && ! is_page(),
     45                'condition'   => is_front_page() || ( is_home() && ! is_page() ),
    4646        );
    4747
    4848        $args = wp_parse_args( $args, $defaults );