mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 16:21:26 +01:00
Fix QE colspan in ie6/7, fixes #8262
git-svn-id: http://svn.automattic.com/wordpress/trunk@9969 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0c44e6c3e6
commit
b2ded29b9f
@ -302,7 +302,7 @@ if ( $page_links )
|
||||
</script>
|
||||
|
||||
<?php
|
||||
inline_edit_term_row('category');
|
||||
inline_edit_term_row('categories');
|
||||
|
||||
break;
|
||||
}
|
||||
|
@ -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'); ?>
|
||||
|
@ -292,7 +292,7 @@ else
|
||||
/* ]]> */
|
||||
</script>
|
||||
|
||||
<?php inline_edit_term_row('tag'); ?>
|
||||
<?php inline_edit_term_row('edit-tags'); ?>
|
||||
|
||||
<?php
|
||||
break;
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user