Fixed broken edit!
git-svn-id: http://svn.automattic.com/wordpress/trunk@278 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8738bf8208
commit
4a866e6b1b
|
@ -42,7 +42,6 @@ function add_magic_quotes($array) {
|
|||
}
|
||||
return $array;
|
||||
}
|
||||
|
||||
if (!get_magic_quotes_gpc()) {
|
||||
$HTTP_GET_VARS = add_magic_quotes($HTTP_GET_VARS);
|
||||
$HTTP_POST_VARS = add_magic_quotes($HTTP_POST_VARS);
|
||||
|
@ -52,7 +51,7 @@ if (!get_magic_quotes_gpc()) {
|
|||
$b2varstoreset = array('action','standalone','cat_id', 'linkurl', 'name', 'image',
|
||||
'description', 'visible', 'target', 'category', 'link_id',
|
||||
'submit', 'order_by', 'links_show_cat_id', 'rating', 'rel',
|
||||
'notes'. 'linkcheck');
|
||||
'notes', 'linkcheck');
|
||||
for ($i=0; $i<count($b2varstoreset); $i += 1) {
|
||||
$b2var = $b2varstoreset[$i];
|
||||
if (!isset($$b2var)) {
|
||||
|
@ -71,7 +70,8 @@ for ($i=0; $i<count($b2varstoreset); $i += 1) {
|
|||
$links_show_cat_id = $HTTP_COOKIE_VARS["links_show_cat_id"];
|
||||
$links_show_order = $HTTP_COOKIE_VARS["links_show_order"];
|
||||
|
||||
// error_log("start, links_show_cat_id=$links_show_cat_id");
|
||||
if ($action2 != '')
|
||||
$action = $action2;
|
||||
|
||||
switch ($action) {
|
||||
case 'Assign':
|
||||
|
@ -569,7 +569,7 @@ LINKS;
|
|||
}
|
||||
echo " </select>\n";
|
||||
?>
|
||||
<input type="submit" name="action" value="Assign" />
|
||||
<input type="submit" name="action2" value="Assign" />
|
||||
</td>
|
||||
<td align="right">
|
||||
Toggle Checkboxes
|
||||
|
|
Loading…
Reference in New Issue