PluginProbe
Elementor Website Builder – more than just a page builder / 3.24.4
Elementor Website Builder – more than just a page builder v3.24.4
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
← All changes | includes/widgets/rating.php +1 -17 4.1.0-dev23.24.4 View file →
@@ -37,12 +37,8 @@
37 37 public function get_style_depends(): array {
38 38 return [ 'widget-rating' ];
39 39 }
40 40
41 - public function has_widget_inner_wrapper(): bool {
42 - return ! Plugin::$instance->experiments->is_feature_active( 'e_optimized_markup' );
43 - }
44 -
45 41 /**
46 42 * @return void
47 43 */
48 44 private function add_style_tab() {
@@ -304,11 +300,9 @@
304 300 'class' => 'e-rating-wrapper',
305 301 'itemprop' => 'ratingValue',
306 302 'content' => $this->get_rating_value(),
307 303 'role' => 'img',
308 - 'aria-label' => sprintf(
309 - /* translators: 1: Rating value, 2: Rating scale. */
310 - esc_html__( 'Rated %1$s out of %2$s', 'elementor' ),
304 + 'aria-label' => sprintf( esc_html__( 'Rated %1$s out of %2$s', 'elementor' ),
311 305 $this->get_rating_value(),
312 306 $this->get_rating_scale()
313 307 ),
314 308 ] );
@@ -320,16 +314,6 @@
320 314 <?php echo $this->get_icon_markup(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
321 315 </div>
322 316 </div>
323 317 <?php
324 - }
325 -
326 - public function render_markdown(): string {
327 - $settings = $this->get_settings_for_display();
328 - $value = $settings['rating_value'] ?? '';
329 - $scale = $settings['rating_scale']['size'] ?? ( $settings['rating_scale'] ?? '5' );
330 - if ( empty( $value ) ) {
331 - return '';
332 - }
333 - return $value . '/' . $scale;
334 318 }
335 319 }