diff --git a/src/wp-admin/css/edit.css b/src/wp-admin/css/edit.css
index 64b98ae..0b3ea2d 100644
a
|
b
|
span.wp-media-buttons-icon:before { |
574 | 574 | position: absolute; |
575 | 575 | } |
576 | 576 | |
577 | | .tagchecklist > span { |
| 577 | .tagchecklist > li { |
| 578 | display: inline-block; |
578 | 579 | float: left; |
579 | 580 | margin-right: 25px; |
580 | 581 | font-size: 13px; |
… |
… |
p.popular-tags a { |
1051 | 1052 | margin: 2px 0 12px; |
1052 | 1053 | } |
1053 | 1054 | |
| 1055 | .the-tagcloud ul { |
| 1056 | margin: 0; |
| 1057 | } |
| 1058 | |
| 1059 | .the-tagcloud ul li { |
| 1060 | display: inline-block; |
| 1061 | } |
| 1062 | |
1054 | 1063 | /* Suggest.js autocomplete, no more used by core. */ |
1055 | 1064 | .ac_results { |
1056 | 1065 | display: none; |
… |
… |
table.links-table { |
1440 | 1449 | margin: 25px 10px; |
1441 | 1450 | } |
1442 | 1451 | |
1443 | | .tagchecklist > span { |
| 1452 | .tagchecklist > li { |
1444 | 1453 | font-size: 16px; |
1445 | 1454 | line-height: 1.4; |
1446 | 1455 | } |
diff --git a/src/wp-admin/css/press-this.css b/src/wp-admin/css/press-this.css
index bafea24..68cc31b 100644
a
|
b
|
dd { |
765 | 765 | |
766 | 766 | /* Tags */ |
767 | 767 | .tagchecklist { |
| 768 | margin: 0; |
768 | 769 | padding: 16px 28px 5px; |
| 770 | list-style: none; |
769 | 771 | } |
770 | 772 | |
771 | 773 | .tagchecklist:before, |
… |
… |
dd { |
778 | 780 | clear: both; |
779 | 781 | } |
780 | 782 | |
781 | | .tagchecklist > span { |
| 783 | .tagchecklist > li { |
| 784 | display: inline-block; |
782 | 785 | float: left; |
783 | 786 | margin-right: 25px; |
784 | 787 | font-size: 13px; |
… |
… |
dd { |
788 | 791 | } |
789 | 792 | |
790 | 793 | @media (max-width: 600px) { |
791 | | .tagchecklist > span { |
| 794 | .tagchecklist > li { |
792 | 795 | margin-bottom: 15px; |
793 | 796 | font-size: 16px; |
794 | 797 | line-height: 1.3; |
… |
… |
dd { |
877 | 880 | padding: 16px; |
878 | 881 | } |
879 | 882 | |
| 883 | .the-tagcloud ul { |
| 884 | margin: 0; |
| 885 | list-style: none; |
| 886 | } |
| 887 | |
| 888 | .the-tagcloud ul li { |
| 889 | display: inline-block; |
| 890 | } |
| 891 | |
880 | 892 | .the-tagcloud a { |
881 | 893 | text-decoration: none; |
882 | 894 | outline: 0; |
diff --git a/src/wp-admin/includes/ajax-actions.php b/src/wp-admin/includes/ajax-actions.php
index 3f3c0fc..f692d08 100644
a
|
b
|
function wp_ajax_get_tagcloud() { |
963 | 963 | } |
964 | 964 | |
965 | 965 | // We need raw tag names here, so don't filter the output |
966 | | $return = wp_generate_tag_cloud( $tags, array('filter' => 0) ); |
| 966 | $return = wp_generate_tag_cloud( $tags, array('filter' => 0, 'format' => 'list') ); |
967 | 967 | |
968 | 968 | if ( empty($return) ) |
969 | 969 | wp_die( 0 ); |
diff --git a/src/wp-admin/includes/class-wp-press-this.php b/src/wp-admin/includes/class-wp-press-this.php
index 7f268ea..4931840 100644
a
|
b
|
class WP_Press_This { |
947 | 947 | |
948 | 948 | ?> |
949 | 949 | </div> |
950 | | <div class="tagchecklist"></div> |
| 950 | <ul class="tagchecklist"></ul> |
951 | 951 | </div> |
952 | 952 | <?php |
953 | 953 | |
diff --git a/src/wp-admin/includes/meta-boxes.php b/src/wp-admin/includes/meta-boxes.php
index 1d9b283..104cb64 100644
a
|
b
|
function post_tags_meta_box( $post, $box ) { |
453 | 453 | <p><?php echo $taxonomy->labels->no_terms; ?></p> |
454 | 454 | <?php endif; ?> |
455 | 455 | </div> |
456 | | <div class="tagchecklist"></div> |
| 456 | <ul class="tagchecklist"></ul> |
457 | 457 | </div> |
458 | 458 | <?php if ( $user_can_assign_terms ) : ?> |
459 | 459 | <p class="hide-if-no-js"><button type="button" class="button-link tagcloud-link" id="link-<?php echo $tax_name; ?>" aria-expanded="false"><?php echo $taxonomy->labels->choose_from_most_used; ?></button></p> |
diff --git a/src/wp-admin/js/tags-box.js b/src/wp-admin/js/tags-box.js
index 3867c7d..d7d3c40 100644
a
|
b
|
var tagBox, array_unique_noempty; |
74 | 74 | tagchecklist.empty(); |
75 | 75 | |
76 | 76 | $.each( current_tags, function( key, val ) { |
77 | | var span, xbutton; |
| 77 | var item, xbutton; |
78 | 78 | |
79 | 79 | val = $.trim( val ); |
80 | 80 | |
81 | 81 | if ( ! val ) |
82 | 82 | return; |
83 | 83 | |
84 | | // Create a new span, and ensure the text is properly escaped. |
85 | | span = $('<span />').text( val ); |
| 84 | // Create a new item, and ensure the text is properly escaped. |
| 85 | item = $('<li />').text( val ); |
86 | 86 | |
87 | 87 | // If tags editing isn't disabled, create the X button. |
88 | 88 | if ( ! disabled ) { |
… |
… |
var tagBox, array_unique_noempty; |
92 | 92 | */ |
93 | 93 | xbutton = $( '<button type="button" id="' + id + '-check-num-' + key + '" class="ntdelbutton">' + |
94 | 94 | '<span class="remove-tag-icon" aria-hidden="true"></span>' + |
95 | | '<span class="screen-reader-text">' + window.tagsSuggestL10n.removeTerm + ' ' + span.html() + '</span>' + |
| 95 | '<span class="screen-reader-text">' + window.tagsSuggestL10n.removeTerm + ' ' + item.html() + '</span>' + |
96 | 96 | '</button>' ); |
97 | 97 | |
98 | 98 | xbutton.on( 'click keypress', function( e ) { |
… |
… |
var tagBox, array_unique_noempty; |
112 | 112 | } |
113 | 113 | }); |
114 | 114 | |
115 | | span.prepend( ' ' ).prepend( xbutton ); |
| 115 | item.prepend( ' ' ).prepend( xbutton ); |
116 | 116 | } |
117 | 117 | |
118 | | // Append the span to the tag list. |
119 | | tagchecklist.append( span ); |
| 118 | // Append the item to the tag list. |
| 119 | tagchecklist.append( item ); |
120 | 120 | }); |
121 | 121 | // The buttons list is built now, give feedback to screen reader users. |
122 | 122 | tagBox.screenReadersMessage(); |
… |
… |
var tagBox, array_unique_noempty; |
166 | 166 | return; |
167 | 167 | } |
168 | 168 | |
169 | | r = $( '<p id="tagcloud-' + tax + '" class="the-tagcloud">' + r + '</p>' ); |
| 169 | r = $( '<div id="tagcloud-' + tax + '" class="the-tagcloud">' + r + '</div>' ); |
170 | 170 | |
171 | 171 | $( 'a', r ).click( function() { |
172 | 172 | tagBox.userAction = 'add'; |