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:
036732f
)
testing $cat_id dropdown restriction
author
Anthony Talarico
<talarico@gaslightmedia.com>
Tue, 12 Jan 2016 19:19:18 +0000
(14:19 -0500)
committer
Anthony Talarico
<talarico@gaslightmedia.com>
Tue, 12 Jan 2016 19:19:18 +0000
(14:19 -0500)
index.php
patch
|
blob
|
history
diff --git
a/index.php
b/index.php
index
c680a36
..
4400463
100644
(file)
--- a/
index.php
+++ b/
index.php
@@
-488,7
+488,7
@@
function michsci_get_terms_dropdown($cat_id)
$output ="<select id='categoryDropdown' name=\"" . MICHSCI_CATEGORY_NAME . "\"><option value=\"\">Select " . MICHSCI_CATEGORY_SINGLE . "</option>";
$main = get_term($cat_id, MICHSCI_CATEGORY_NAME);
$output .= '<option value="' . $cat . '"';
- if ($_REQUEST[MICHSCI_CATEGORY_NAME] == $cat
->term_id
) {
+ if ($_REQUEST[MICHSCI_CATEGORY_NAME] == $cat) {
$output .= ' selected';
}
$catName = get_term($cat, MICHSCI_CATEGORY_NAME);