Add colspan for IE, fixes #8513

git-svn-id: http://svn.automattic.com/wordpress/trunk@10092 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2008-12-06 23:42:22 +00:00
parent 49a667aa09
commit 0e125cae08
1 changed files with 6 additions and 1 deletions

View File

@ -2104,10 +2104,15 @@ function wp_comment_reply($position = '1', $checkbox = false, $mode = 'single',
echo $content; echo $content;
return; return;
} }
$columns = get_column_headers('edit-comments');
$hidden = array_intersect( array_keys( $columns ), array_filter( get_hidden_columns('edit-comments') ) );
$col_count = count($columns) - count($hidden);
?> ?>
<form method="get" action=""> <form method="get" action="">
<?php if ( $table_row ) : ?> <?php if ( $table_row ) : ?>
<table style="display:none;"><tbody id="com-reply"><tr id="replyrow"><td colspan="6"> <table style="display:none;"><tbody id="com-reply"><tr id="replyrow"><td colspan="<?php echo $col_count; ?>">
<?php else : ?> <?php else : ?>
<div id="com-reply" style="display:none;"><div id="replyrow"> <div id="com-reply" style="display:none;"><div id="replyrow">
<?php endif; ?> <?php endif; ?>