PluginProbe
WPGet API – Connect to any external REST API / 1.9.0
WPGet API – Connect to any external REST API v1.9.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/functions.php +0 -20 2.0.31.9.0 View file →
@@ -88,24 +88,4 @@
88 88
89 89 return $field_args;
90 90
91 91 }
92 -
93 -
94 -/**
95 - * Ensure our unique ID's are only lowercase and underscores
96 - *
97 - * @param mixed $value The unsanitized value from the form.
98 - * @param array $field_args Array of field arguments.
99 - * @param CMB2_Field $field The field object
100 - *
101 - * @return mixed Sanitized value to be stored.
102 - */
103 -function wpgetapi_sanitize_unique_id( $value, $field_args, $field ) {
104 - $sanitized_value = sanitize_file_name( $value );
105 - $sanitized_value = str_replace("-", "_", $sanitized_value );
106 - $sanitized_value = str_replace(".", "_", $sanitized_value );
107 - $sanitized_value = str_replace("^", "_", $sanitized_value );
108 - $sanitized_value = str_replace("@", "_", $sanitized_value );
109 - return $sanitized_value;
110 -}
111 -