Skip to content

Commit

Permalink
do not use "?page=x" for GET requests, wordpress kills them
Browse files Browse the repository at this point in the history
  • Loading branch information
Uncovery committed Aug 31, 2020
1 parent f4eb08d commit 7dfaa1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions shop_manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ function umc_shopmgr_main() {
return "You have to be logged in to see this!";
}

if (!isset($s_get['page'])) {
if (!isset($s_get['section'])) {
$sel_page = 'deposit';
} else {
$sel_page = $s_get['page'];
$sel_page = $s_get['section'];
}

$out = '';
Expand Down Expand Up @@ -64,7 +64,7 @@ function umc_shopmgr_main() {
if ($page == $sel_page) {
$out .= "<li class=\"active_world\">$page_name</li>";
} else {
$out .= "<li><a href=\"?page=$page\">$page_name</a></li>";
$out .= "<li><a href=\"?section=$page\">$page_name</a></li>";
}
}
$out .= "</ul><br>";
Expand Down

0 comments on commit 7dfaa1d

Please sign in to comment.