Make WordPress Core

Ticket #45924: 45924.diff

File 45924.diff, 1.4 KB (added by truchot, 5 years ago)
  • src/wp-content/themes/twentynineteen/sass/site/header/_site-header.scss

    diff --git a/src/wp-content/themes/twentynineteen/sass/site/header/_site-header.scss b/src/wp-content/themes/twentynineteen/sass/site/header/_site-header.scss
    index 3f723ba..48ccacb 100644
    a b  
    121121        @include media(tablet) {
    122122                display: inline;
    123123        }
    124 
    125         &:not(:empty) + .site-description:not(:empty):before {
    126                 content: "\2014";
    127                 margin: 0 .2em;
    128         }
    129124}
    130125
    131126// Site description
  • src/wp-content/themes/twentynineteen/template-parts/header/site-branding.php

    diff --git a/src/wp-content/themes/twentynineteen/template-parts/header/site-branding.php b/src/wp-content/themes/twentynineteen/template-parts/header/site-branding.php
    index 03bc53b..9d95d0f 100644
    a b  
    2525        $description = get_bloginfo( 'description', 'display' );
    2626        if ( $description || is_customize_preview() ) :
    2727                ?>
    28                         <p class="site-description">
    29                                 <?php echo $description; ?>
    30                         </p>
     28                <p class="site-description">
     29                        <?php
     30                        printf(
     31                                /* translators: %s: Site description */
     32                                __('— %s', 'twentynineteen'),
     33                                $description
     34                        );
     35                        ?>
     36                </p>
    3137        <?php endif; ?>
    3238        <?php if ( has_nav_menu( 'menu-1' ) ) : ?>
    3339                <nav id="site-navigation" class="main-navigation" aria-label="<?php esc_attr_e( 'Top Menu', 'twentynineteen' ); ?>">