Make WordPress Core


Ignore:
Timestamp:
04/19/2006 07:10:48 AM (18 years ago)
Author:
matt
Message:

Make categories clickable, just like on the posts screen

File:
1 edited

Legend:

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

    r3660 r3718  
    163163        foreach ($link->link_category as $category) {
    164164            $cat_name = get_the_category_by_ID($category);
    165             $cat_names[] = wp_specialchars($cat_name);
     165            $cat_name = wp_specialchars($cat_name);
     166            if ( $cat_id != $category )
     167                $cat_name = "<a href='link-manager.php?cat_id=$category'>$cat_name</a>";
     168            $cat_names[] = $cat_name;
    166169        }
    167170        echo implode(', ', $cat_names);
     
    183186<div id="ajax-response"></div>
    184187
    185 <p class="submit"><input type="submit" class="button" name="deletebookmarks" id="deletebookmarks" value="<?php _e('Delete Checked Bookmarks') ?>" onclick="return confirm('<?php _e("You are about to delete these bookmarks permanently \\n  \'Cancel\' to stop, \'OK\' to delete.") ?>')" /></p>
     188<p class="submit"><input type="submit" class="button" name="deletebookmarks" id="deletebookmarks" value="<?php _e('Delete Checked Bookmarks') ?> &raquo;" onclick="return confirm('<?php _e("You are about to delete these bookmarks permanently \\n  \'Cancel\' to stop, \'OK\' to delete.") ?>')" /></p>
    186189</div>
    187190</form>
Note: See TracChangeset for help on using the changeset viewer.