PluginProbe
Ultimate Post Kit – Elementor Post Grid, Post Carousel, Post Slider & Blog Layout Widgets / 4.5.6
Ultimate Post Kit – Elementor Post Grid, Post Carousel, Post Slider & Blog Layout Widgets v4.5.6
4.5.6 4.5.5 4.5.4 4.2.1 4.2.2 4.2.3 4.5.0 4.5.2 4.5.3 4.2.0 4.1.18 4.1.17 4.1.16 4.1.15 4.1.14 4.1.13 4.1.12 4.1.11 4.1.10 4.1.9 4.1.8 4.0.9 4.1.0 4.1.1 4.1.2 All 148 releases
← All changes | modules/timeline/widgets/timeline.php +10 -7 4.1.16 → 4.5.6 View file →
@@ -150,9 +150,10 @@
150 150 [
151 151 'label' => esc_html__( 'Human Different Time', 'ultimate-post-kit' ),
152 152 'type' => Controls_Manager::SWITCHER,
153 153 'condition' => [
154 - 'show_inline_date' => 'yes'
154 + 'show_inline_date' => 'yes',
155 + 'show_date' => ''
155 156 ]
156 157 ]
157 158 );
158 159
@@ -175,9 +176,10 @@
175 176 'label' => esc_html__( 'Show Time', 'ultimate-post-kit' ),
176 177 'type' => Controls_Manager::SWITCHER,
177 178 'condition' => [
178 179 'human_diff_time' => '',
179 - 'show_inline_date' => 'yes'
180 + 'show_inline_date' => 'yes',
181 + 'show_date' => ''
180 182 ]
181 183 ]
182 184 );
183 185
@@ -212,8 +214,9 @@
212 214 $this->add_group_control(
213 215 Group_Control_Image_Size::get_type(),
214 216 [
215 217 'name' => 'primary_thumbnail',
218 + // phpcs:ignore WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_exclude -- Elementor widget query built from user-configured controls; expected behaviour.
216 219 'exclude' => [ 'custom' ],
217 220 'default' => 'medium',
218 221 ]
219 222 );
@@ -1043,9 +1046,9 @@
1043 1046
1044 1047 if ( $settings['human_diff_time'] == 'yes' ) {
1045 1048 echo esc_html( ultimate_post_kit_post_time_diff( ( $settings['human_diff_time_short'] == 'yes' ) ? 'short' : '' ) );
1046 1049 } else {
1047 - echo get_the_date();
1050 + echo esc_html( get_the_date() );
1048 1051 }
1049 1052 }
1050 1053
1051 1054 public function render_post_grid_item( $post_id, $image_size, $excerpt_length, $class ) {
@@ -1072,17 +1075,17 @@
1072 1075 <?php
1073 1076 $day_month_format = isset( $settings['day_month_format'] ) && ! empty( $settings['day_month_format'] ) ? $settings['day_month_format'] : 'm/d';
1074 1077 $year_format = isset( $settings['year_format'] ) && ! empty( $settings['year_format'] ) ? $settings['year_format'] : 'Y';
1075 1078 ?>
1076 - <span class="upk-month"><?php echo get_the_date( $day_month_format ); ?></span>
1077 - <span class="upk-year"><?php echo get_the_date( $year_format ); ?></span>
1079 + <span class="upk-month"><?php echo esc_html( get_the_date( $day_month_format ) ); ?></span>
1080 + <span class="upk-year"><?php echo esc_html( get_the_date( $year_format ) ); ?></span>
1078 1081 </div>
1079 1082 </div>
1080 1083 <?php else : ?>
1081 1084 <div class="upk-date-wrapper">
1082 1085 <div class="upk-date-inner">
1083 - <span class="upk-month"><?php echo get_the_date( 'm/d' ); ?></span>
1084 - <span class="upk-year"><?php echo get_the_date( 'Y' ); ?></span>
1086 + <span class="upk-month"><?php echo esc_html( get_the_date( 'm/d' ) ); ?></span>
1087 + <span class="upk-year"><?php echo esc_html( get_the_date( 'Y' ) ); ?></span>
1085 1088 </div>
1086 1089 </div>
1087 1090 <?php endif; ?>
1088 1091