PluginProbe
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News / 2.2.10
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News v2.2.10
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 4.0.2 4.0.1 2.3.5 2.3.6 2.4.0 2.4.1 2.4.10 2.4.11 2.4.12 2.4.13 2.4.14 2.4.15 2.4.16 2.4.17 2.4.18 2.4.19 2.4.2 2.4.20 2.4.21 All 88 releases
← All changes | admin/views/sp-framework/fields/radio/radio.php +8 -8 2.4.10 → 2.2.10 View file →
@@ -39,9 +39,9 @@
39 39 );
40 40
41 41 $inline_class = ( $args['inline'] ) ? ' class="spf--inline-list"' : '';
42 42
43 - echo wp_kses_post( $this->field_before() );
43 + echo $this->field_before();
44 44
45 45 if ( isset( $this->field['options'] ) ) {
46 46
47 47 $options = $this->field['options'];
@@ -48,9 +48,9 @@
48 48 $options = ( is_array( $options ) ) ? $options : array_filter( $this->field_data( $options, false, $args['query_args'] ) );
49 49
50 50 if ( is_array( $options ) && ! empty( $options ) ) {
51 51
52 - echo '<ul' . wp_kses_post( $inline_class ) . '>';
52 + echo '<ul' . $inline_class . '>';
53 53 foreach ( $options as $option_key => $pcp_metabox_value ) {
54 54
55 55 if ( is_array( $pcp_metabox_value ) && ! empty( $pcp_metabox_value ) ) {
56 56
@@ -55,12 +55,12 @@
55 55 if ( is_array( $pcp_metabox_value ) && ! empty( $pcp_metabox_value ) ) {
56 56
57 57 echo '<li>';
58 58 echo '<ul>';
59 - echo '<li><strong>' . esc_html( $option_key ) . '</strong></li>';
59 + echo '<li><strong>' . $option_key . '</strong></li>';
60 60 foreach ( $pcp_metabox_value as $sub_key => $sub_value ) {
61 61 $checked = ( $sub_key == $this->value ) ? ' checked' : '';
62 - echo '<li><label><input type="radio" name="' . esc_attr( $this->field_name() ) . '" value="' . esc_attr( $sub_key ) . '"' . wp_kses_post( $this->field_attributes() ) . esc_attr( $checked ) . '/> ' . wp_kses_post( $sub_value ) . '</label></li>';
62 + echo '<li><label><input type="radio" name="' . $this->field_name() . '" value="' . $sub_key . '"' . $this->field_attributes() . $checked . '/> ' . $sub_value . '</label></li>';
63 63 }
64 64 echo '</ul>';
65 65 echo '</li>';
66 66
@@ -66,9 +66,9 @@
66 66
67 67 } else {
68 68
69 69 $checked = ( $option_key == $this->value ) ? ' checked' : '';
70 - echo '<li><label><input type="radio" name="' . esc_attr( $this->field_name() ) . '" value="' . esc_attr( $option_key ) . '"' . wp_kses_post( $this->field_attributes() ) . esc_attr( $checked ) . '/> ' . esc_html( $pcp_metabox_value ) . '</label></li>';
70 + echo '<li><label><input type="radio" name="' . $this->field_name() . '" value="' . $option_key . '"' . $this->field_attributes() . $checked . '/> ' . $pcp_metabox_value . '</label></li>';
71 71
72 72 }
73 73 }
74 74 echo '</ul>';
@@ -74,17 +74,17 @@
74 74 echo '</ul>';
75 75
76 76 } else {
77 77
78 - echo ( esc_html( ! empty( $this->field['empty_message'] ) ) ) ? esc_html( $this->field['empty_message'] ) : esc_html__( 'No data provided for this option type.', 'post-carousel' );
78 + echo ( ! empty( $this->field['empty_message'] ) ) ? $this->field['empty_message'] : esc_html__( 'No data provided for this option type.', 'smart-post-show' );
79 79
80 80 }
81 81 } else {
82 82 $label = ( isset( $this->field['label'] ) ) ? $this->field['label'] : '';
83 - echo '<label><input type="radio" name="' . esc_attr( $this->field_name() ) . '" value="1"' . wp_kses_post( $this->field_attributes() . checked( $this->value, 1, false ) ) . '/> ' . esc_html( $label ) . '</label>';
83 + echo '<label><input type="radio" name="' . $this->field_name() . '" value="1"' . $this->field_attributes() . checked( $this->value, 1, false ) . '/> ' . $label . '</label>';
84 84 }
85 85
86 - echo wp_kses_post( $this->field_after() );
86 + echo $this->field_after();
87 87
88 88 }
89 89
90 90 }