Use suggested language conventions in the hook docs description for the `theme_page_templates` filter.

See #27700.

Built from https://develop.svn.wordpress.org/trunk@28000


git-svn-id: http://core.svn.wordpress.org/trunk@27830 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2014-04-07 20:18:14 +00:00
parent 0b5729216d
commit 35fb93858a
1 changed files with 2 additions and 1 deletions

View File

@ -968,7 +968,7 @@ final class WP_Theme implements ArrayAccess {
$page_templates += $this->parent()->get_page_templates( $post );
/**
* Remove or rename page templates for a theme.
* Filter list of page templates for a theme.
*
* This filter does not currently allow for page templates to be added.
*
@ -980,6 +980,7 @@ final class WP_Theme implements ArrayAccess {
* @param WP_Post|null $post The post being edited, provided for context, or null.
*/
$return = apply_filters( 'theme_page_templates', $page_templates, $this, $post );
return array_intersect_assoc( $return, $page_templates );
}