- Timestamp:
- 12/14/2021 04:12:57 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php
r52275 r52372 319 319 if ( $theme->get_stylesheet() === wp_get_theme()->get_stylesheet() ) { 320 320 // This creates a record for the current theme if not existent. 321 $id = WP_Theme_JSON_Resolver::get_user_ custom_post_type_id();321 $id = WP_Theme_JSON_Resolver::get_user_global_styles_post_id(); 322 322 } else { 323 $user_cpt = WP_Theme_JSON_Resolver::get_user_data_from_ custom_post_type( $theme );323 $user_cpt = WP_Theme_JSON_Resolver::get_user_data_from_wp_global_styles( $theme ); 324 324 $id = isset( $user_cpt['ID'] ) ? $user_cpt['ID'] : null; 325 325 }
Note: See TracChangeset
for help on using the changeset viewer.