Make WordPress Core

Ticket #9393: 9393-template.php

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

Replaces template.diff as this fixes the notice in 2 locations where as the other missed one

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