Changeset 54818 for branches/6.1/src/wp-includes/theme-templates.php
- Timestamp:
- 11/11/2022 04:29:27 PM (2 years ago)
- Location:
- branches/6.1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.1
-
branches/6.1/src/wp-includes/theme-templates.php
r53331 r54818 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.