PluginProbe
WPGet API – Connect to any external REST API / 1.1.0
WPGet API – Connect to any external REST API v1.1.0
1.9.2 1.9.3 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.1.0 2.1.1 2.1.3 2.1.4 2.1.5 2.2.0 2.2.1 2.2.10 2.2.2 2.2.3 All 97 releases
← All changes | includes/class-fields.php +4 -5 1.9.31.1.0 View file →
@@ -56,14 +56,13 @@
56 56 <label for="<?php esc_attr_e( $this->_id( '_value' ) ); ?>">
57 57 <?php esc_html_e( $this->_text( 'parameter_value_text', __( 'Value', 'wpgetapi' ) ) ); ?>
58 58 </label>
59 59
60 - <?php echo $this->types->textarea( array(
60 + <?php echo $this->types->input( array(
61 61 'name' => $this->_name( '[value]' ),
62 62 'id' => $this->_id( '_value' ),
63 - 'value' => stripslashes($value['value']),
63 + 'value' => $value['value'],
64 64 'desc' => '',
65 - 'rows' => 1,
66 65 'placeholder' => __( 'Value of the parameter', 'wpgetapi' ),
67 66 ) ); ?>
68 67 </div>
69 68
@@ -115,9 +114,9 @@
115 114 continue;
116 115 }
117 116
118 117 foreach ( $param as $key => $val ) {
119 - $meta_value[ $i ][ $key ] = $key === 'name' ? $val : $encryption->encrypt( $val );
118 + $meta_value[ $i ][ $key ] = $key == 'name' ? $val : $encryption->encrypt( $val );
120 119 }
121 120
122 121 }
123 122
@@ -141,9 +140,9 @@
141 140 continue;
142 141 }
143 142
144 143 foreach ( $param as $key => $val ) {
145 - $meta_value[ $i ][ $key ] = $key === 'name' ? $val : $encryption->decrypt( $val );
144 + $meta_value[ $i ][ $key ] = $key == 'name' ? $val : $encryption->decrypt( $val );
146 145 }
147 146
148 147 }
149 148