| @@ -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 | } |