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 +7 -6 1.9.61.1.0 View file →
@@ -49,19 +49,20 @@
49 49 'value' => $value['name'],
50 50 'desc' => '',
51 51 'placeholder' => __( 'Name of the parameter', 'wpgetapi' ),
52 52 ) ); ?>
53 - </div><span class="colon">:</span><div class="value input-wrap">
53 + </div><!--
54 +
55 + --><div class="value input-wrap">
54 56 <label for="<?php esc_attr_e( $this->_id( '_value' ) ); ?>">
55 57 <?php esc_html_e( $this->_text( 'parameter_value_text', __( 'Value', 'wpgetapi' ) ) ); ?>
56 58 </label>
57 59
58 - <?php echo $this->types->textarea( array(
60 + <?php echo $this->types->input( array(
59 61 'name' => $this->_name( '[value]' ),
60 62 'id' => $this->_id( '_value' ),
61 - 'value' => stripslashes($value['value']),
63 + 'value' => $value['value'],
62 64 'desc' => '',
63 - 'rows' => 1,
64 65 'placeholder' => __( 'Value of the parameter', 'wpgetapi' ),
65 66 ) ); ?>
66 67 </div>
67 68
@@ -113,9 +114,9 @@
113 114 continue;
114 115 }
115 116
116 117 foreach ( $param as $key => $val ) {
117 - $meta_value[ $i ][ $key ] = $key === 'name' ? $val : $encryption->encrypt( $val );
118 + $meta_value[ $i ][ $key ] = $key == 'name' ? $val : $encryption->encrypt( $val );
118 119 }
119 120
120 121 }
121 122
@@ -139,9 +140,9 @@
139 140 continue;
140 141 }
141 142
142 143 foreach ( $param as $key => $val ) {
143 - $meta_value[ $i ][ $key ] = $key === 'name' ? $val : $encryption->decrypt( $val );
144 + $meta_value[ $i ][ $key ] = $key == 'name' ? $val : $encryption->decrypt( $val );
144 145 }
145 146
146 147 }
147 148