PluginProbe
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! / 3.2.2
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! v3.2.2
3.7.5 3.7.4 3.7.3 3.7.2 1-final 3.7.1 3.7.0 3.6.8 3.6.7 3.6.6 3.6.5 3.6.4 3.6.3 3.6.2 3.6.1 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.10 All 111 releases
← All changes | includes/Builder/TemplateLoader.php +0 -25 3.6.23.2.2 View file →
@@ -24,10 +24,8 @@
24 24 add_action( 'get_footer', [ $this, 'get_footer' ], 0 );
25 25 add_action( 'elementor/document/wrapper_attributes', [ $this, 'wrapper_attributes' ], 10, 2 );
26 26 add_action( 'template_redirect', array( $this, 'set_global_product' ) );
27 27
28 - add_action( 'templately_builder_header_after', [ self::class, 'print_style_tags' ], 0 );
29 - add_action( 'templately_builder_footer_before', [ self::class, 'print_style_tags' ], 0 );
30 28 /**
31 29 * Only for Development Mode.
32 30 */
33 31 if ( defined( 'TEMPLATELY_DEV_VIEWS' ) && TEMPLATELY_DEV_VIEWS ) {
@@ -136,32 +134,9 @@
136 134 if ( class_exists('\WC_Product') && ! $product instanceof \WC_Product ) {
137 135 $product_id = get_the_ID();
138 136 if ( $product_id ) {
139 137 wc_setup_product_data( $product_id );
140 - }
141 - }
142 - }
143 -
144 - /**
145 - * Print remaining enqueued styles with error handling.
146 - */
147 - public static function print_style_tags() {
148 - try {
149 - $wp_styles = wp_styles();
150 - // handles dependencies
151 - $wp_styles->do_items();
152 - if ( is_object( $wp_styles ) && is_array( $wp_styles->queue ?? null ) ) {
153 - foreach ( $wp_styles->queue as $style ) {
154 - if ( is_string( $style ) && ! $wp_styles->query( $style, 'done' ) ) {
155 - $wp_styles->do_item( $style );
156 - $wp_styles->done[] = $style;
157 - }
158 - }
159 - }
160 - } catch ( \Throwable $e ) {
161 - if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
162 - error_log( 'Templately: Error printing styles - ' . $e->getMessage() );
163 138 }
164 139 }
165 140 }
166 141
167 142 }