Skip to content

Commit 986834d

Browse files
committed
Add colspan for IE, fixes WordPress#8513
git-svn-id: https://develop.svn.wordpress.org/trunk@10092 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 8022edc commit 986834d

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

wp-admin/includes/template.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2104,10 +2104,15 @@ function wp_comment_reply($position = '1', $checkbox = false, $mode = 'single',
21042104
echo $content;
21052105
return;
21062106
}
2107+
2108+
$columns = get_column_headers('edit-comments');
2109+
$hidden = array_intersect( array_keys( $columns ), array_filter( get_hidden_columns('edit-comments') ) );
2110+
$col_count = count($columns) - count($hidden);
2111+
21072112
?>
21082113
<form method="get" action="">
21092114
<?php if ( $table_row ) : ?>
2110-
<table style="display:none;"><tbody id="com-reply"><tr id="replyrow"><td colspan="6">
2115+
<table style="display:none;"><tbody id="com-reply"><tr id="replyrow"><td colspan="<?php echo $col_count; ?>">
21112116
<?php else : ?>
21122117
<div id="com-reply" style="display:none;"><div id="replyrow">
21132118
<?php endif; ?>

0 commit comments

Comments
 (0)