Changeset 51168 for trunk/src/wp-includes/theme-templates.php
- Timestamp:
- 06/16/2021 09:41:44 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme-templates.php
r51150 r51168 23 23 } 24 24 25 // Template slugs must be unique within the same theme. 26 // TODO - Figure out how to update this to work for a multi-theme 27 // environment. Unfortunately using `get_the_terms` for the 'wp-theme' 28 // term does not work in the case of new entities since is too early in 29 // the process to have been saved to the entity. So for now we use the 30 // currently activated theme for creation. 25 /* 26 * Template slugs must be unique within the same theme. 27 * TODO - Figure out how to update this to work for a multi-theme environment. 28 * Unfortunately using `get_the_terms()` for the 'wp-theme' term does not work 29 * in the case of new entities since is too early in the process to have been saved 30 * to the entity. So for now we use the currently activated theme for creation. 31 */ 31 32 $theme = wp_get_theme()->get_stylesheet(); 32 33 $terms = get_the_terms( $post_ID, 'wp_theme' );
Note: See TracChangeset
for help on using the changeset viewer.