Making WordPress.org


Ignore:
Timestamp:
06/16/2016 01:22:49 PM (9 years ago)
Author:
obenland
Message:

Plugin Directory: Updated styles for archive pages.

See #1719.

File:
1 edited

Legend:

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

    r3388 r3389  
    182182
    183183/**
     184 * Bold archive terms are made here.
     185 *
     186 * @param string $term The archive term to bold.
     187 * @return string
     188 */
     189function strong_archive_title( $term ) {
     190    return '<strong>' . $term . '</strong>';
     191}
     192add_filter( 'post_type_archive_title', __NAMESPACE__ . '\strong_archive_title' );
     193add_filter( 'single_term_title',       __NAMESPACE__ . '\strong_archive_title' );
     194add_filter( 'single_cat_title',        __NAMESPACE__ . '\strong_archive_title' );
     195add_filter( 'single_tag_title',        __NAMESPACE__ . '\strong_archive_title' );
     196add_filter( 'get_the_date',            __NAMESPACE__ . '\strong_archive_title' );
     197
     198/**
    184199 * Custom template tags for this theme.
    185200 */
Note: See TracChangeset for help on using the changeset viewer.