Ticket #9583: 9583.diff
| File 9583.diff, 1.2 KB (added by , 17 years ago) |
|---|
-
wp-content/themes/default/functions.php
4 4 * @subpackage Default_Theme 5 5 */ 6 6 7 add_filter('manage_edit-comments_columns', 'wwww'); 8 function wwww($columns) { 9 $columns['yyy'] = "YYYY"; 10 return $columns; 11 } 12 add_action('manage_comments_custom_column', 'xxxx', 10, 2); 13 function xxxx($col_name, $comment_id) { 14 if ( $col_name == 'yyy' ) { 15 echo "id=$comment_id"; 16 } 17 } 18 7 19 automatic_feed_links(); 8 20 9 21 if ( function_exists('register_sidebar') ) { -
wp-admin/includes/template.php
2212 2212 echo "<a href='" . get_permalink( $post->ID ) . "'>#</a>"; 2213 2213 echo '</div></td>'; 2214 2214 } 2215 break; 2216 default: 2217 echo "<td $attributes>\n"; 2218 do_action( 'manage_comments_custom_column', $column_name, $comment->comment_ID ); 2219 echo "</td>\n"; 2220 break; 2215 2221 } 2216 2222 } 2217 2223 echo "</tr>\n";