WordPress.org

Make WordPress Core

Changeset 33273


Ignore:
Timestamp:
07/14/2015 10:11:52 PM (4 years ago)
Author:
DrewAPicture
Message:

Docs: Clarify the hook docs for the {$type}_template hook to mention that non-alphanumeric characters delimiting words will also be removed from the passed $type parameter.

Also remove a now-unnecessary inline @see tag from the return description.

See #32246. See #32989.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/template.php

    r33272 r33273  
    3232     * Filter the path of the queried template by type.
    3333     *
    34      * The dynamic portion of the hook name, `$type`, refers to the filename
    35      * -- minus the extension -- of the file to load. This hook also applies
    36      * to various types of files loaded as part of the Template Hierarchy.
     34     * The dynamic portion of the hook name, `$type`, refers to the filename -- minus the file
     35     * extension and any non-alphanumeric characters delimiting words -- of the file to load.
     36     * This hook also applies to various types of files loaded as part of the Template Hierarchy.
    3737     *
    3838     * @since 1.5.0
    3939     *
    40      * @param string $template Path to the template. See {@see locate_template()}.
     40     * @param string $template Path to the template. See locate_template().
    4141     */
    4242    return apply_filters( "{$type}_template", $template );
Note: See TracChangeset for help on using the changeset viewer.