Make WordPress Core


Ignore:
Timestamp:
01/02/2004 12:49:13 AM (21 years ago)
Author:
alex_t_king
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/moderation.php

    r628 r682  
    3737}
    3838
    39 
     39$comment = array();
     40if (isset($HTTP_POST_VARS["comment"])) {
     41    foreach ($HTTP_POST_VARS["comment"] as $k => $v) {
     42        $comment[intval($k)] = $v;
     43    }
     44}
    4045
    4146switch($action) {
     
    138143?>
    139144    <p>The following comments wait for approval:</p>
    140     <form name="approval" action="" method="post">
     145    <form name="approval" action="moderation.php" method="post">
    141146    <input type="hidden" name="action" value="update" />
    142147    <ol id="comments">
Note: See TracChangeset for help on using the changeset viewer.