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

git-svn-id: http://svn.automattic.com/wordpress/trunk@682 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
alex_t_king 2004-01-02 00:49:13 +00:00
parent 11d47e1330
commit 29c9a3c8cd
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