Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

Validation rules for themes/plugins market filtering and search

givanz2a1ca406268a
diff --git a/admin/validate/plugins.php b/admin/validate/plugins.php
index 5859fcd..5b1047f 100755
--- a/admin/validate/plugins.php
+++ b/admin/validate/plugins.php
@@ -25,6 +25,12 @@ return [
'notEmpty' => '',
'maxLength' => 100,
],
+ 'search' => [
+ 'optional' => '',
+ ],
+ 'taxonomy_item_id' => [
+ 'optional' => '',
+ ],
'browse' => [
'allowedValues' => ['popular', 'featured', 'updated', 'new'],
],
diff --git a/admin/validate/themes.php b/admin/validate/themes.php
index b30ef12..f4c8eb2 100755
--- a/admin/validate/themes.php
+++ b/admin/validate/themes.php
@@ -28,6 +28,12 @@ return [
'maxLength' => 100 /*,
'message' => __('%s must not be greater than %d')*/,
],
+ 'taxonomy_item_id' => [
+ 'optional' => '',
+ ],
+ 'search' => [
+ 'optional' => '',
+ ],
'browse' => [
'allowedValues' => ['popular', 'featured', 'updated', 'new'],
],