Changeset 27470 for trunk/src/wp-admin/includes/theme.php
- Timestamp:
- 03/08/2014 04:18:30 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/theme.php
r27369 r27470 79 79 * @since 1.5.0 80 80 * 81 * @param WP_Post|null $post Optional. The post being edited, provided for context. 81 82 * @return array Key is the template name, value is the filename of the template 82 83 */ 83 function get_page_templates( ) {84 return array_flip( wp_get_theme()->get_page_templates( ) );84 function get_page_templates( $post = null ) { 85 return array_flip( wp_get_theme()->get_page_templates( $post ) ); 85 86 } 86 87
Note: See TracChangeset
for help on using the changeset viewer.