Making WordPress.org

Changeset 2041


Ignore:
Timestamp:
11/05/2015 06:44:26 PM (9 years ago)
Author:
coffee2code
Message:

developer.wordpress.org: Adjust function name and description do de-associate it from 'wp_title'.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/extras.php

    r2010 r2041  
    3737
    3838/**
    39  * Filters wp_title to print a neat <title> tag based on what is being viewed.
     39 * Filters document title to add context based on what is being viewed.
    4040 *
    4141 * @param array $parts The document title parts.
    4242 * @return array The document title parts.
    4343 */
    44 function wporg_developer_wp_title( $parts ) {
     44function wporg_developer_document_title( $parts ) {
    4545    global $page, $paged;
    4646
     
    8888    return $parts;
    8989}
    90 add_filter( 'document_title_parts', 'wporg_developer_wp_title' );
     90add_filter( 'document_title_parts', 'wporg_developer_document_title' );
    9191
    9292/**
Note: See TracChangeset for help on using the changeset viewer.