Make WordPress Core

Ticket #9393: 9393-template.2.php

File 9393-template.2.php, 833 bytes (added by sivel, 16 years ago)

This patch replaces post_template.patch. Replaces get_author_name in all locations in which it is used

Line 
1Index: wp-admin/includes/template.php
2===================================================================
3--- wp-admin/includes/template.php      (revision 11321)
4+++ wp-admin/includes/template.php      (working copy)
5@@ -1520,7 +1520,7 @@
6 
7                case 'author':
8                ?>
9-               <td <?php echo $attributes ?>><a href="edit.php?author=<?php the_author_ID(); ?>"><?php the_author() ?></a></td>
10+               <td <?php echo $attributes ?>><a href="edit.php?author=<?php the_author_meta('ID'); ?>"><?php the_author() ?></a></td>
11                <?php
12                break;
13 
14@@ -1701,7 +1701,7 @@
15 
16        case 'author':
17                ?>
18-               <td <?php echo $attributes ?>><a href="edit-pages.php?author=<?php the_author_ID(); ?>"><?php the_author() ?></a></td>
19+               <td <?php echo $attributes ?>><a href="edit-pages.php?author=<?php the_author_meta('ID'); ?>"><?php the_author() ?></a></td>
20                <?php
21                break;
22