WordPress.org

Making WordPress.org

Ticket #2387: 2387.patch

File 2387.patch, 871 bytes (added by SergeyBiryukov, 5 years ago)
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/functions.php

     
    171171add_filter( 'document_title_parts', __NAMESPACE__ . '\document_title' );
    172172
    173173/**
     174 * Set the separator for the document title.
     175 *
     176 * @return string Document title separator.
     177 */
     178function document_title_separator() {
     179        return '—';
     180}
     181add_filter( 'document_title_separator', __NAMESPACE__ . '\document_title_separator' );
     182
     183/**
    174184 * Shorten excerpt length on index pages, so plugins cards are all the same height.
    175185 *
    176186 * @param string $excerpt The excerpt.