Fix comment reply colspan. Props garyc40. fixes #15876
git-svn-id: https://develop.svn.wordpress.org/trunk@17124 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1c309312a0
commit
ee09d38544
@ -330,8 +330,12 @@ function wp_comment_reply($position = '1', $checkbox = false, $mode = 'single',
|
||||
echo $content;
|
||||
return;
|
||||
}
|
||||
|
||||
$wp_list_table = get_list_table('WP_Comments_List_Table');
|
||||
|
||||
if ( $mode == 'single' ) {
|
||||
$wp_list_table = get_list_table('WP_Post_Comments_List_Table');
|
||||
} else {
|
||||
$wp_list_table = get_list_table('WP_Comments_List_Table');
|
||||
}
|
||||
|
||||
?>
|
||||
<form method="get" action="">
|
||||
|
@ -338,7 +338,6 @@ commentReply = {
|
||||
t.close();
|
||||
t.cid = id;
|
||||
|
||||
$('td', '#replyrow').attr('colspan', $('table.widefat thead th:visible').length);
|
||||
editRow = $('#replyrow');
|
||||
rowData = $('#inline-'+id);
|
||||
act = t.act = (a == 'edit') ? 'edit-comment' : 'replyto-comment';
|
||||
|
File diff suppressed because one or more lines are too long
@ -312,7 +312,7 @@ function wp_default_scripts( &$scripts ) {
|
||||
'l10n_print_after' => 'try{convertEntities(listTableL10n);}catch(e){};'
|
||||
) );
|
||||
|
||||
$scripts->add( 'admin-comments', "/wp-admin/js/edit-comments$suffix.js", array('wp-lists', 'list-table', 'jquery-ui-resizable', 'quicktags'), '20101222' );
|
||||
$scripts->add( 'admin-comments', "/wp-admin/js/edit-comments$suffix.js", array('wp-lists', 'list-table', 'jquery-ui-resizable', 'quicktags'), '20101223' );
|
||||
$scripts->add_data( 'admin-comments', 'group', 1 );
|
||||
$scripts->localize( 'admin-comments', 'adminCommentsL10n', array(
|
||||
'hotkeys_highlight_first' => isset($_GET['hotkeys_highlight_first']),
|
||||
|
Loading…
Reference in New Issue
Block a user