added action to moderation post form and fixed the comment var so it works w/o register globals on

git-svn-id: https://develop.svn.wordpress.org/trunk@682 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Alex King 2004-01-02 00:49:13 +00:00
parent 4209bebb6c
commit 81a4ca7850
1 changed files with 7 additions and 2 deletions

View File

@ -36,7 +36,12 @@ for ($i=0; $i<count($wpvarstoreset); $i += 1) {
}
}
$comment = array();
if (isset($HTTP_POST_VARS["comment"])) {
foreach ($HTTP_POST_VARS["comment"] as $k => $v) {
$comment[intval($k)] = $v;
}
}
switch($action) {
@ -137,7 +142,7 @@ if ($comments) {
$file = basename(__FILE__);
?>
<p>The following comments wait for approval:</p>
<form name="approval" action="" method="post">
<form name="approval" action="moderation.php" method="post">
<input type="hidden" name="action" value="update" />
<ol id="comments">
<?php