Changeset 54817 for trunk/src/wp-includes/theme-templates.php
- Timestamp:
- 11/11/2022 04:24:47 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme-templates.php
r53331 r54817 28 28 $terms = get_the_terms( $post_id, 'wp_theme' ); 29 29 if ( ! is_array( $terms ) || ! count( $terms ) ) { 30 wp_set_post_terms( $post_id, wp_get_theme()->get_stylesheet(), 'wp_theme' );30 wp_set_post_terms( $post_id, get_stylesheet(), 'wp_theme' ); 31 31 } 32 32 } … … 61 61 * to the entity. So for now we use the currently activated theme for creation. 62 62 */ 63 $theme = wp_get_theme()->get_stylesheet();63 $theme = get_stylesheet(); 64 64 $terms = get_the_terms( $post_ID, 'wp_theme' ); 65 65 if ( $terms && ! is_wp_error( $terms ) ) {
Note: See TracChangeset
for help on using the changeset viewer.