Remove the long-broken and questionably useful [more]/[less] toggle for hierarchical taxonomies in Quick/Bulk Edit. Nobody seems to have noticed in the nearly 3 years it's been broken. fixes #23006

git-svn-id: https://develop.svn.wordpress.org/trunk@23354 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Helen Hou-Sandi 2013-01-28 22:36:15 +00:00
parent 9a00a0dcce
commit a38f0e16c5
6 changed files with 1 additions and 41 deletions

View File

@ -1535,11 +1535,6 @@ table.diff .diff-addedline ins {
border-color: #ddd; border-color: #ddd;
} }
.inline-editor .categories .catshow,
.inline-editor .categories .cathide {
color: #21759b;
}
.inline-editor .quick-edit-save { .inline-editor .quick-edit-save {
background-color: #f1f1f1; background-color: #f1f1f1;
} }

View File

@ -1426,11 +1426,6 @@ table.diff .diff-addedline ins {
border-color: #ddd; border-color: #ddd;
} }
.inline-editor .categories .catshow,
.inline-editor .categories .cathide {
color: #21759b;
}
.inline-editor .quick-edit-save { .inline-editor .quick-edit-save {
background-color: #f1f1f1; background-color: #f1f1f1;
} }

View File

@ -816,8 +816,6 @@ th.sorted a span {
} }
.inline-edit-row fieldset ul.cat-checklist label, .inline-edit-row fieldset ul.cat-checklist label,
.inline-edit-row .catshow,
.inline-edit-row .cathide,
.inline-edit-row #bulk-titles div { .inline-edit-row #bulk-titles div {
font-family: Tahoma, Arial, sans-serif; font-family: Tahoma, Arial, sans-serif;
} }
@ -2590,8 +2588,6 @@ body.locale-he-il,
.locale-he-il .inline-edit-row fieldset span.title, .locale-he-il .inline-edit-row fieldset span.title,
.locale-he-il .inline-edit-row fieldset span.checkbox-title, .locale-he-il .inline-edit-row fieldset span.checkbox-title,
.locale-he-il .inline-edit-row fieldset ul.cat-checklist label, .locale-he-il .inline-edit-row fieldset ul.cat-checklist label,
.locale-he-il .inline-edit-row .catshow,
.locale-he-il .inline-edit-row .cathide,
.locale-he-il .inline-edit-row #bulk-titles div, .locale-he-il .inline-edit-row #bulk-titles div,
.locale-he-il p.help, .locale-he-il p.help,
.locale-he-il p.description, .locale-he-il p.description,

View File

@ -2879,11 +2879,6 @@ tr.inline-edit-row td,
width: 8em; width: 8em;
} }
.inline-edit-row .catshow,
.inline-edit-row .cathide {
cursor: pointer;
}
ul.cat-checklist { ul.cat-checklist {
height: 12em; height: 12em;
border-style: solid; border-style: solid;
@ -2909,21 +2904,12 @@ ul.cat-checklist {
} }
.inline-edit-row fieldset ul.cat-checklist label, .inline-edit-row fieldset ul.cat-checklist label,
.inline-edit-row .catshow,
.inline-edit-row .cathide,
.inline-edit-row #bulk-titles div { .inline-edit-row #bulk-titles div {
font-family: sans-serif; font-family: sans-serif;
font-style: normal; font-style: normal;
font-size: 11px; font-size: 11px;
} }
table .inline-edit-row fieldset ul.cat-hover {
height: auto;
max-height: 30em;
overflow-y: auto;
position: absolute;
}
.inline-edit-row fieldset label input.inline-edit-menu-order-input { .inline-edit-row fieldset label input.inline-edit-menu-order-input {
width: 3em; width: 3em;
} }

View File

@ -820,10 +820,7 @@ class WP_Posts_List_Table extends WP_List_Table {
<?php foreach ( $hierarchical_taxonomies as $taxonomy ) : ?> <?php foreach ( $hierarchical_taxonomies as $taxonomy ) : ?>
<span class="title inline-edit-categories-label"><?php echo esc_html( $taxonomy->labels->name ) ?> <span class="title inline-edit-categories-label"><?php echo esc_html( $taxonomy->labels->name ) ?></span>
<span class="catshow"><?php _e( '[more]' ); ?></span>
<span class="cathide" style="display:none;"><?php _e( '[less]' ); ?></span>
</span>
<input type="hidden" name="<?php echo ( $taxonomy->name == 'category' ) ? 'post_category[]' : 'tax_input[' . esc_attr( $taxonomy->name ) . '][]'; ?>" value="0" /> <input type="hidden" name="<?php echo ( $taxonomy->name == 'category' ) ? 'post_category[]' : 'tax_input[' . esc_attr( $taxonomy->name ) . '][]'; ?>" value="0" />
<ul class="cat-checklist <?php echo esc_attr( $taxonomy->name )?>-checklist"> <ul class="cat-checklist <?php echo esc_attr( $taxonomy->name )?>-checklist">
<?php wp_terms_checklist( null, array( 'taxonomy' => $taxonomy->name ) ) ?> <?php wp_terms_checklist( null, array( 'taxonomy' => $taxonomy->name ) ) ?>

View File

@ -53,15 +53,6 @@ inlineEditPost = {
$('#inline-edit label.inline-edit-tags').clone() $('#inline-edit label.inline-edit-tags').clone()
); );
// hiearchical taxonomies expandable?
$('span.catshow').click(function(){
$(this).hide().next().show().parent().next().addClass("cat-hover");
});
$('span.cathide').click(function(){
$(this).hide().prev().show().parent().next().removeClass("cat-hover");
});
$('select[name="_status"] option[value="future"]', bulkRow).remove(); $('select[name="_status"] option[value="future"]', bulkRow).remove();
$('#doaction, #doaction2').click(function(e){ $('#doaction, #doaction2').click(function(e){