Make WordPress Core

Ticket #1249: wordpress-admin-category-link.diff

File wordpress-admin-category-link.diff, 1.1 KB (added by perldude, 21 years ago)
  • wp-admin/admin.php

     
    11<?php
    22require_once('../wp-config.php');
    33require_once(ABSPATH . 'wp-admin/admin-functions.php');
     4require_once (ABSPATH . WPINC . '/template-functions-category.php');
     5
    46auth_redirect();
    57
    68header('Expires: Mon, 11 Jan 1984 05:00:00 GMT');
     
    6466        exit();
    6567}
    6668
    67 ?>
    68  No newline at end of file
     69?>
  • wp-admin/admin-functions.php

     
    122122                                        $edit = '';
    123123                               
    124124                                $class = ('alternate' == $class) ? '' : 'alternate';
    125                                 echo "<tr class='$class'><th scope='row'>$category->cat_ID</th><td>$pad $category->cat_name</td>
     125                                echo "<tr class='$class'><th scope='row'>$category->cat_ID</th><td>$pad <a href=\"" . get_category_link($category->cat_ID) . "\">$category->cat_name</a></td>
    126126                                <td>$category->category_description</td>
    127127                                <td>$count</td>
    128128                                <td>$edit</td>