Changeset 10857
- Timestamp:
- 03/29/2021 06:37:17 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/functions.php
r10742 r10857 559 559 return $schema; 560 560 } 561 562 /** 563 * Use the index.php template for various WordPress views that would otherwise be handled by the parent theme. 564 */ 565 function use_index_php_as_template() { 566 return __DIR__ . '/index.php'; 567 } 568 add_filter( 'single_template', 'use_index_php_as_template' ); 569 add_filter( 'archive_template', 'use_index_php_as_template' );
Note: See TracChangeset
for help on using the changeset viewer.