Changeset 14190 for sites/trunk/wp-themes.com/public_html/wp-content/plugins/style-variations/inc/styles-endpoint.php
- Timestamp:
- 11/21/2024 07:16:33 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wp-themes.com/public_html/wp-content/plugins/style-variations/inc/styles-endpoint.php
r13301 r14190 3 3 namespace WordPressdotorg\Theme_Preview\Style_Variations\API_Endpoint; 4 4 5 use function WordPressdotorg\Theme_Preview\Style_Variations\get_style_variations; 6 5 7 function endpoint_handler() { 6 $variations = \WP_Theme_JSON_Resolver::get_style_variations();8 $variations = get_style_variations(); 7 9 $theme_slug = get_option( 'stylesheet' ); 8 10 $styles = array(); … … 26 28 foreach ( $variations as $variation ) { 27 29 $title = strtolower( $variation['title'] ); 28 $link = add_query_arg( 'style_variation', urlencode( $title ), $base ); ;30 $link = add_query_arg( 'style_variation', urlencode( $title ), $base ); 29 31 30 32 $styles[] = array(
Note: See TracChangeset
for help on using the changeset viewer.