Fix QE colspan in ie6/7, fixes #8262

git-svn-id: https://develop.svn.wordpress.org/trunk@9969 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2008-11-29 23:09:04 +00:00
parent 8bc6952610
commit 72f4d14f13
4 changed files with 11 additions and 8 deletions

View File

@ -302,7 +302,7 @@ if ( $page_links )
</script>
<?php
inline_edit_term_row('category');
inline_edit_term_row('categories');
break;
}

View File

@ -234,5 +234,5 @@ if ( $page_links )
/* ]]> */
</script>
<?php inline_edit_term_row('link-category'); ?>
<?php inline_edit_term_row('edit-link-categories'); ?>
<?php include('admin-footer.php'); ?>

View File

@ -292,7 +292,7 @@ else
/* ]]> */
</script>
<?php inline_edit_term_row('tag'); ?>
<?php inline_edit_term_row('edit-tags'); ?>
<?php
break;

View File

@ -203,8 +203,8 @@ function inline_edit_term_row($type) {
if ( ! current_user_can( 'manage_categories' ) )
return;
$is_tag = $type == 'tag';
$columns = $is_tag ? get_column_headers('tag') : get_column_headers('category');
$is_tag = $type == 'edit-tags';
$columns = get_column_headers($type);
$hidden = array_intersect( array_keys( $columns ), array_filter( get_hidden_columns($type) ) );
$col_count = count($columns) - count($hidden);
?>
@ -922,13 +922,16 @@ function inline_edit_row( $type ) {
global $current_user, $mode;
$is_page = 'page' == $type;
if ( $is_page )
if ( $is_page ) {
$screen = 'edit';
$post = get_default_page_to_edit();
else
} else {
$screen = 'edit-pages';
$post = get_default_post_to_edit();
}
$columns = $is_page ? wp_manage_pages_columns() : wp_manage_posts_columns();
$hidden = array_intersect( array_keys( $columns ), array_filter( get_hidden_columns($type) ) );
$hidden = array_intersect( array_keys( $columns ), array_filter( get_hidden_columns($screen) ) );
$col_count = count($columns) - count($hidden);
$m = ( isset($mode) && 'excerpt' == $mode ) ? 'excerpt' : 'list';
$can_publish = current_user_can("publish_{$type}s");