diff --git a/composer.json b/composer.json index 807596e..e5ba3f3 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "description": "Utilities that make reading and writing PHP code more convenient and enjoyable", "type": "library", "license": "GPL-v2-or-later", - "version": "1.1.1", + "version": "1.1.2", "authors": [ { "name": "Elegant Themes", diff --git a/src/Utils.php b/src/Utils.php index ef3e3ff..74cc2cc 100644 --- a/src/Utils.php +++ b/src/Utils.php @@ -490,6 +490,19 @@ public function escArray( $values, $escaping_function = 'esc_html' ) { return $result; } + /** + * Pass-through function for acknowledging a previously sanitized value + * + * @since 1.1.2 + * + * @param mixed $value Value that has already been sanitized during the current request + * + * @return mixed + */ + public function sanitizedPreviously( $value ) { + return $value; + } + /** * Whether or not a string starts with a substring. *