WordPress.org

Making WordPress.org

Changeset 4504


Ignore:
Timestamp:
12/08/16 12:38:26 (8 months ago)
Author:
obenland
Message:

Plugin Directory: Use proper document titles throughout.

Props joostdevalk, ocean90.
Fixes #2314.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins
Files:
2 edited

Legend:

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

    r4481 r4504  
    3838        'caption', 
    3939    ) ); 
    40  
    4140} 
    4241add_action( 'after_setup_theme', __NAMESPACE__ . '\setup' ); 
     
    275274    return '<strong>' . $term . '</strong>'; 
    276275} 
    277 add_filter( 'post_type_archive_title', __NAMESPACE__ . '\strong_archive_title' ); 
    278 add_filter( 'single_term_title',       __NAMESPACE__ . '\strong_archive_title' ); 
    279 add_filter( 'single_cat_title',        __NAMESPACE__ . '\strong_archive_title' ); 
    280 add_filter( 'single_tag_title',        __NAMESPACE__ . '\strong_archive_title' ); 
    281 add_filter( 'get_the_date',            __NAMESPACE__ . '\strong_archive_title' ); 
     276add_action( 'wp_head', function() { 
     277    add_filter( 'post_type_archive_title', __NAMESPACE__ . '\strong_archive_title' ); 
     278    add_filter( 'single_term_title',       __NAMESPACE__ . '\strong_archive_title' ); 
     279    add_filter( 'single_cat_title',        __NAMESPACE__ . '\strong_archive_title' ); 
     280    add_filter( 'single_tag_title',        __NAMESPACE__ . '\strong_archive_title' ); 
     281    add_filter( 'get_the_date',            __NAMESPACE__ . '\strong_archive_title' ); 
     282} ); 
    282283 
    283284/** 
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/header.php

    r4438 r4504  
    1818); 
    1919 
    20 $GLOBALS['pagetitle'] = __( 'Plugin Directory &mdash; Free WordPress Plugins', 'wporg-plugins' ); 
     20$GLOBALS['pagetitle'] = wp_get_document_title(); 
    2121require WPORGPATH . 'header.php'; 
    2222?> 
Note: See TracChangeset for help on using the changeset viewer.