projects
/
WP-Plugins
/
michsci-products.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39c90b5
)
testing cookies for text query
author
Anthony Talarico
<talarico@gaslightmedia.com>
Tue, 2 Feb 2016 14:48:59 +0000
(09:48 -0500)
committer
Anthony Talarico
<talarico@gaslightmedia.com>
Tue, 2 Feb 2016 14:48:59 +0000
(09:48 -0500)
index.php
patch
|
blob
|
history
diff --git
a/index.php
b/index.php
index
8100c2e
..
bb63332
100644
(file)
--- a/
index.php
+++ b/
index.php
@@
-463,9
+463,9
@@
function michsci_shortcode($atts)
$text_query = filter_var($_REQUEST['tsearch'], FILTER_SANITIZE_STRING);
// strip_tags($text_query);
if(isset($_REQUEST['tsearch'])){
- setcookie("search", "true",time()+
1
, "/" );
+ setcookie("search", "true",time()+
2
, "/" );
} else {
- setcookie("search", "null",time()+
1
, "/" );
+ setcookie("search", "null",time()+
2
, "/" );
}
michsci_list_products($text_query);
michsci_list_categories();