Changeset 14190 for sites/trunk/wp-themes.com/public_html/wp-content/plugins/style-variations/inc/page-intercept.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/page-intercept.php
r13301 r14190 2 2 3 3 namespace WordPressdotorg\Theme_Preview\Style_Variations\Page_Intercept; 4 5 use function WordPressdotorg\Theme_Preview\Style_Variations\get_style_variations; 4 6 5 7 /** … … 30 32 * Retrieve all variations and match to make sure we have one with the same title. 31 33 */ 32 $variations = \WP_Theme_JSON_Resolver::get_style_variations();34 $variations = get_style_variations(); 33 35 if ( empty( $variations ) ) { 34 36 return false; … … 99 101 * We need to call gutenberg's filter `theme_json_user` to make sure the styles are applied to the page. 100 102 * This use to work for both the page and card but a core change stopped that. 101 * 103 * 102 104 * See: https://core.trac.wordpress.org/ticket/56812 103 * 105 * 104 106 * We now need to also call the core filter `wp_theme_json_data_user` to get the card preview to work. 105 107 * Hopefully this code can be remove when we have a better component to use. 106 * 108 * 107 109 * Ref: https://github.com/WordPress/gutenberg/issues/44886 108 110
Note: See TracChangeset
for help on using the changeset viewer.