Make WordPress Core

Ticket #9583: 9583.diff

File 9583.diff, 1.2 KB (added by coffee2code, 17 years ago)

Same as original patch but based on diff from root of trunk and against latest rev ( r11001)

  • wp-content/themes/default/functions.php

     
    44 * @subpackage Default_Theme
    55 */
    66
     7add_filter('manage_edit-comments_columns', 'wwww');
     8function wwww($columns) {
     9        $columns['yyy'] = "YYYY";
     10        return $columns;
     11}
     12add_action('manage_comments_custom_column', 'xxxx', 10, 2);
     13function xxxx($col_name, $comment_id) {
     14        if ( $col_name == 'yyy' ) {
     15                echo "id=$comment_id";
     16        }
     17}
     18
    719automatic_feed_links();
    820
    921if ( function_exists('register_sidebar') ) {
  • wp-admin/includes/template.php

     
    22122212                                        echo "<a href='" . get_permalink( $post->ID ) . "'>#</a>";
    22132213                                        echo '</div></td>';
    22142214                                }
     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;
    22152221                }
    22162222        }
    22172223        echo "</tr>\n";