WordPress.org

Making WordPress.org

Changeset 7597


Ignore:
Timestamp:
08/06/2018 11:42:29 PM (7 months ago)
Author:
obenland
Message:

Gutenberg: Don't show tagline on front page.

See https://wordpress.slack.com/archives/C02QB8GMM/p1533564896000041

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/gutenberg/functions.php

    r7596 r7597  
    272272add_action( 'wp_ajax_nopriv_query-attachments', 'frontenberg_wp_ajax_nopriv_query_attachments' );
    273273
     274/**
     275 * Removes tagline, which is used more as a description on this site.
     276 *
     277 * @param array $title {
     278 *     The document title parts.
     279 *
     280 *     @type string $title   Title of the viewed page.
     281 *     @type string $page    Optional. Page number if paginated.
     282 *     @type string $tagline Optional. Site description when on home page.
     283 *     @type string $site    Optional. Site title when not on home page.
     284 * }
     285 */
     286function gutenberg_title_parts( $title ) {
     287    unset( $title['tagline'] );
     288
     289    return $title;
     290}
     291add_filter( 'document_title_parts', 'gutenberg_title_parts' );
     292
    274293if ( ! function_exists( 'gutenbergtheme_setup' ) ) :
    275294    /**
Note: See TracChangeset for help on using the changeset viewer.