Make WordPress Core

Changeset 278


Ignore:
Timestamp:
07/29/2003 01:46:24 PM (23 years ago)
Author:
mikelittle
Message:

Fixed broken edit!

File:
1 edited

Legend:

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

    r277 r278  
    4343    return $array;
    4444}
    45 
    4645if (!get_magic_quotes_gpc()) {
    4746    $HTTP_GET_VARS    = add_magic_quotes($HTTP_GET_VARS);
     
    5352                       'description', 'visible', 'target', 'category', 'link_id',
    5453                       'submit', 'order_by', 'links_show_cat_id', 'rating', 'rel',
    55                        'notes'. 'linkcheck');
     54                       'notes', 'linkcheck');
    5655for ($i=0; $i<count($b2varstoreset); $i += 1) {
    5756    $b2var = $b2varstoreset[$i];
     
    7271$links_show_order = $HTTP_COOKIE_VARS["links_show_order"];
    7372
    74 // error_log("start, links_show_cat_id=$links_show_cat_id");
     73if ($action2 != '')
     74    $action = $action2;
    7575
    7676switch ($action) {
     
    541541            if ($show_buttons) {
    542542              echo <<<LINKS
    543         <td><input type="submit" name="edit" onclick="document.forms['links'].link_id.value='$link->link_id'; document.forms['links'].action.value='linkedit'; " value="Edit" class="search" /></td>
     543        <td><input type="submit" name="edit" onclick="document.forms['links'].link_id.value='$link->link_id'; document.forms['links'].action.value='linkedit';" value="Edit" class="search" /></td>
    544544        <td><input type="submit" name="delete" onclick="document.forms['links'].link_id.value='$link->link_id'; document.forms['links'].action.value='Delete'; return confirm('You are about to delete this link.\\n  \'Cancel\' to stop, \'OK\' to delete.'); " value="Delete" class="search" /></td>
    545545        <td><input type="checkbox" name="linkcheck[]" value="$link->link_id" /><td>
     
    570570    echo "        </select>\n";
    571571?>
    572         <input type="submit" name="action" value="Assign" />
     572        <input type="submit" name="action2" value="Assign" />
    573573        </td>
    574574        <td align="right">
Note: See TracChangeset for help on using the changeset viewer.