mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
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:
parent
0b5729216d
commit
35fb93858a
@ -968,7 +968,7 @@ final class WP_Theme implements ArrayAccess {
|
|||||||
$page_templates += $this->parent()->get_page_templates( $post );
|
$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.
|
* 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.
|
* @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 = apply_filters( 'theme_page_templates', $page_templates, $this, $post );
|
||||||
|
|
||||||
return array_intersect_assoc( $return, $page_templates );
|
return array_intersect_assoc( $return, $page_templates );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user