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. Built from https://develop.svn.wordpress.org/trunk@33273 git-svn-id: http://core.svn.wordpress.org/trunk@33245 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
84419a51b8
commit
f7f4a97d07
|
@ -31,13 +31,13 @@ function get_query_template( $type, $templates = array() ) {
|
||||||
/**
|
/**
|
||||||
* Filter the path of the queried template by type.
|
* Filter the path of the queried template by type.
|
||||||
*
|
*
|
||||||
* The dynamic portion of the hook name, `$type`, refers to the filename
|
* The dynamic portion of the hook name, `$type`, refers to the filename -- minus the file
|
||||||
* -- minus the extension -- of the file to load. This hook also applies
|
* extension and any non-alphanumeric characters delimiting words -- of the file to load.
|
||||||
* to various types of files loaded as part of the Template Hierarchy.
|
* This hook also applies to various types of files loaded as part of the Template Hierarchy.
|
||||||
*
|
*
|
||||||
* @since 1.5.0
|
* @since 1.5.0
|
||||||
*
|
*
|
||||||
* @param string $template Path to the template. See {@see locate_template()}.
|
* @param string $template Path to the template. See locate_template().
|
||||||
*/
|
*/
|
||||||
return apply_filters( "{$type}_template", $template );
|
return apply_filters( "{$type}_template", $template );
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.3-beta2-33272';
|
$wp_version = '4.3-beta2-33273';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue