summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/functions.php b/functions.php
index 84b863e70..5fe75c288 100644
--- a/functions.php
+++ b/functions.php
@@ -3039,4 +3039,14 @@
return $tags;
}
+ function trim_value(&$value) {
+ $value = trim($value);
+ }
+
+ function trim_array($array) {
+ $tmp = $array;
+ array_walk($tmp, 'trim_value');
+ return $tmp;
+ }
+
?>