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:
parent
4209bebb6c
commit
81a4ca7850
@ -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
Block a user