Changeset 34995 for trunk/src/wp-includes/class-wp-theme.php
- Timestamp:
- 10/09/2015 09:50:05 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-theme.php
r34912 r34995 1022 1022 * Filter list of page templates for a theme. 1023 1023 * 1024 * This filter does not currently allow for page templates to be added.1025 *1026 1024 * @since 3.9.0 1025 * @since 4.4.0 Converted to allow complete control over the `$page_templates` array. 1027 1026 * 1028 1027 * @param array $page_templates Array of page templates. Keys are filenames, … … 1031 1030 * @param WP_Post|null $post The post being edited, provided for context, or null. 1032 1031 */ 1033 $return = apply_filters( 'theme_page_templates', $page_templates, $this, $post ); 1034 1035 return array_intersect_assoc( $return, $page_templates ); 1032 return (array) apply_filters( 'theme_page_templates', $page_templates, $this, $post ); 1036 1033 } 1037 1034
Note: See TracChangeset
for help on using the changeset viewer.