Changeset 3517 for trunk/wp-admin/link-manager.php
- Timestamp:
- 02/12/2006 07:53:23 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/link-manager.php
r3422 r3517 129 129 130 130 add_link(); 131 131 132 132 header('Location: ' . $_SERVER['HTTP_REFERER'] . '?added=true'); 133 133 break; … … 138 138 139 139 check_admin_referer(); 140 140 141 141 if (isset($links_show_cat_id) && ($links_show_cat_id != '')) 142 142 $cat_id = $links_show_cat_id; … … 150 150 $link_id = (int) $_POST['link_id']; 151 151 edit_link($link_id); 152 152 153 153 setcookie('links_show_cat_id_' . COOKIEHASH, $links_show_cat_id, time()+600); 154 154 wp_redirect($this_file); … … 166 166 167 167 wp_delete_link($link_id); 168 168 169 169 if (isset($links_show_cat_id) && ($links_show_cat_id != '')) 170 170 $cat_id = $links_show_cat_id; … … 185 185 if ( !current_user_can('manage_links') ) 186 186 die(__('You do not have sufficient permissions to edit the links for this blog.')); 187 187 188 188 $link_id = (int) $_GET['link_id']; 189 189 190 190 if ( !$link = get_link_to_edit($link_id) ) 191 191 die( __('Link not found.') ); 192 192 193 193 include('edit-link-form.php'); 194 194 break; … … 371 371 <tr id="link-<?php echo $link->link_id; ?>" valign="middle" <?php echo $style; ?>> 372 372 <td><strong><?php echo $link->link_name; ?></strong><br /> 373 <?php 373 <?php 374 374 echo sprintf(__('Description: %s'), $link->link_description) . "</td>"; 375 375 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.