Skip to content

Commit

Permalink
feat: add sanitizedPreviously() to Utils
Browse files Browse the repository at this point in the history
build: [skip-ci]
  • Loading branch information
lots0logs committed Oct 11, 2020
1 parent d4fa961 commit 0f52e6a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
13 changes: 13 additions & 0 deletions src/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 0f52e6a

Please sign in to comment.