Changeset 43028 for branches/4.9/src/wp-includes/class-wp-theme.php
- Timestamp:
- 04/29/2018 10:44:31 PM (7 years ago)
- Location:
- branches/4.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
- Property svn:mergeinfo changed
/trunk merged: 43025,43027
- Property svn:mergeinfo changed
-
branches/4.9/src/wp-includes/class-wp-theme.php
r42243 r43028 1071 1071 * Filters list of page templates for a theme. 1072 1072 * 1073 * @since 4.9.6 1074 * 1075 * @param string[] $post_templates Array of page templates. Keys are filenames, 1076 * values are translated names. 1077 * @param WP_Theme $this The theme object. 1078 * @param WP_Post|null $post The post being edited, provided for context, or null. 1079 * @param string $post_type Post type to get the templates for. 1080 */ 1081 $post_templates = (array) apply_filters( 'theme_templates', $post_templates, $this, $post, $post_type ); 1082 1083 /** 1084 * Filters list of page templates for a theme. 1085 * 1073 1086 * The dynamic portion of the hook name, `$post_type`, refers to the post type. 1074 1087 * … … 1083 1096 * @param string $post_type Post type to get the templates for. 1084 1097 */ 1085 return (array) apply_filters( "theme_{$post_type}_templates", $post_templates, $this, $post, $post_type ); 1098 $post_templates = (array) apply_filters( "theme_{$post_type}_templates", $post_templates, $this, $post, $post_type ); 1099 1100 return $post_templates; 1086 1101 } 1087 1102
Note: See TracChangeset
for help on using the changeset viewer.