Ticket #1249: wordpress-admin-category-link.diff
| File wordpress-admin-category-link.diff, 1.1 KB (added by , 21 years ago) |
|---|
-
wp-admin/admin.php
1 1 <?php 2 2 require_once('../wp-config.php'); 3 3 require_once(ABSPATH . 'wp-admin/admin-functions.php'); 4 require_once (ABSPATH . WPINC . '/template-functions-category.php'); 5 4 6 auth_redirect(); 5 7 6 8 header('Expires: Mon, 11 Jan 1984 05:00:00 GMT'); … … 64 66 exit(); 65 67 } 66 68 67 ?> 68 No newline at end of file 69 ?> -
wp-admin/admin-functions.php
122 122 $edit = ''; 123 123 124 124 $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> 126 126 <td>$category->category_description</td> 127 127 <td>$count</td> 128 128 <td>$edit</td>