Make WordPress Core


Ignore:
Timestamp:
02/12/2006 07:53:23 AM (19 years ago)
Author:
ryan
Message:

Death to trailing tabs. Props Mark J. fixes #2405

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/link-manager.php

    r3422 r3517  
    129129
    130130    add_link();
    131    
     131
    132132    header('Location: ' . $_SERVER['HTTP_REFERER'] . '?added=true');
    133133    break;
     
    138138 
    139139    check_admin_referer();
    140     
     140 
    141141    if (isset($links_show_cat_id) && ($links_show_cat_id != ''))
    142142        $cat_id = $links_show_cat_id;
     
    150150    $link_id = (int) $_POST['link_id'];
    151151    edit_link($link_id);
    152    
     152
    153153    setcookie('links_show_cat_id_' . COOKIEHASH, $links_show_cat_id, time()+600);
    154154    wp_redirect($this_file);
     
    166166
    167167    wp_delete_link($link_id);
    168    
     168
    169169    if (isset($links_show_cat_id) && ($links_show_cat_id != ''))
    170170        $cat_id = $links_show_cat_id;
     
    185185    if ( !current_user_can('manage_links') )
    186186        die(__('You do not have sufficient permissions to edit the links for this blog.'));
    187    
     187
    188188    $link_id = (int) $_GET['link_id'];
    189    
     189
    190190    if ( !$link = get_link_to_edit($link_id) )
    191191        die( __('Link not found.') );
    192    
     192
    193193    include('edit-link-form.php');
    194194    break;
     
    371371    <tr id="link-<?php echo $link->link_id; ?>" valign="middle" <?php echo $style; ?>>
    372372        <td><strong><?php echo $link->link_name; ?></strong><br />
    373 <?php           
     373<?php
    374374        echo sprintf(__('Description: %s'), $link->link_description) . "</td>";
    375375        echo "<td><a href=\"$link->link_url\" title=\"" . sprintf(__('Visit %s'), $link->link_name) . "\">$short_url</a></td>";
Note: See TracChangeset for help on using the changeset viewer.