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:
parent
11d47e1330
commit
29c9a3c8cd
|
@ -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) {
|
switch($action) {
|
||||||
|
|
||||||
|
@ -137,7 +142,7 @@ if ($comments) {
|
||||||
$file = basename(__FILE__);
|
$file = basename(__FILE__);
|
||||||
?>
|
?>
|
||||||
<p>The following comments wait for approval:</p>
|
<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" />
|
<input type="hidden" name="action" value="update" />
|
||||||
<ol id="comments">
|
<ol id="comments">
|
||||||
<?php
|
<?php
|
||||||
|
|
Loading…
Reference in New Issue