← All changes
|
modules/ramble-carousel/widgets/ramble-carousel.php
+5
-4
4.1.15
→
4.5.6
View file →
| @@ -154,8 +154,9 @@ | ||
| 154 | 154 | $this->add_group_control( |
| 155 | 155 | Group_Control_Image_Size::get_type(), |
| 156 | 156 | [ |
| 157 | 157 | 'name' => 'primary_thumbnail', |
| 158 | + // phpcs:ignore WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_exclude -- Elementor widget query built from user-configured controls; expected behaviour. | |
| 158 | 159 | 'exclude' => ['custom'], |
| 159 | 160 | 'default' => 'medium', |
| 160 | 161 | ] |
| 161 | 162 | ); |
| @@ -1270,9 +1271,9 @@ | ||
| 1270 | 1271 | |
| 1271 | 1272 | <?php if ($settings['show_date'] or $settings['show_reading_time']) : ?> |
| 1272 | 1273 | <div class="upk-date-reading-time upk-flex upk-flex-middle"> |
| 1273 | 1274 | <?php if ($settings['show_date'] == 'yes') : ?> |
| 1274 | - <div data-separator="<?php echo esc_html($settings['meta_separator']); ?>"> | |
| 1275 | + <div data-separator="<?php echo esc_attr($settings['meta_separator']); ?>"> | |
| 1275 | 1276 | <?php $this->render_date(); ?> |
| 1276 | 1277 | </div> |
| 1277 | 1278 | <?php endif; ?> |
| 1278 | 1279 | |
| @@ -1277,9 +1278,9 @@ | ||
| 1277 | 1278 | <?php endif; ?> |
| 1278 | 1279 | |
| 1279 | 1280 | <?php if (_is_upk_pro_activated()) : |
| 1280 | 1281 | if ('yes' === $settings['show_reading_time']) : ?> |
| 1281 | - <div class="upk-reading-time" data-separator="<?php echo esc_html($settings['meta_separator']); ?>"> | |
| 1282 | + <div class="upk-reading-time" data-separator="<?php echo esc_attr($settings['meta_separator']); ?>"> | |
| 1282 | 1283 | <?php echo esc_html( ultimate_post_kit_reading_time( get_the_content(), $settings['avg_reading_speed'], $settings['hide_seconds'] ?? 'no', $settings['hide_minutes'] ?? 'no' ) ); ?> |
| 1283 | 1284 | </div> |
| 1284 | 1285 | <?php endif; ?> |
| 1285 | 1286 | <?php endif; ?> |
| @@ -1314,14 +1315,14 @@ | ||
| 1314 | 1315 | |
| 1315 | 1316 | $animation = ($this->get_settings('readmore_hover_animation')) ? ' elementor-animation-' . $this->get_settings('readmore_hover_animation') : ''; |
| 1316 | 1317 | |
| 1317 | 1318 | ?> |
| 1318 | - <a href="<?php echo esc_url(get_permalink()); ?>" class="upk-readmore <?php echo esc_html($animation); ?>"> | |
| 1319 | + <a href="<?php echo esc_url(get_permalink()); ?>" class="upk-readmore <?php echo esc_attr($animation); ?>"> | |
| 1319 | 1320 | <span class="upk-flex upk-flex-middle"> |
| 1320 | 1321 | <?php echo esc_html($this->get_settings('readmore_text')); ?> |
| 1321 | 1322 | |
| 1322 | 1323 | <?php if ($settings['readmore_icon']['value']) : ?> |
| 1323 | - <span class="upk-readmore-btn-icon upk-flex-align-<?php echo esc_html($this->get_settings('icon_align')); ?>"> | |
| 1324 | + <span class="upk-readmore-btn-icon upk-flex-align-<?php echo esc_attr($this->get_settings('icon_align')); ?>"> | |
| 1324 | 1325 | |
| 1325 | 1326 | <?php Icons_Manager::render_icon($settings['readmore_icon'], ['aria-hidden' => 'true', 'class' => 'fa-fw']); ?> |
| 1326 | 1327 | |
| 1327 | 1328 | </span> |