<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[31566] trunk/src/wp-admin: PressThis: accessibility enhancements:</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="https://core.trac.wordpress.org/changeset/31566">31566</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"https://core.trac.wordpress.org/changeset/31566","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>azaozz</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2015-02-27 02:49:05 +0000 (Fri, 27 Feb 2015)</dd>
</dl>

<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>PressThis: accessibility enhancements:
- Add missing form labels.
- Add some screen-reader-text and aria-hidden attributes.
- Focus handling improvements.
- Change tagcloud-link into a button.
- Add missing ID attribute in tools.php.
Props afercia. Fixes <a href="https://core.trac.wordpress.org/ticket/31449">#31449</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpadmincsspressthiscss">trunk/src/wp-admin/css/press-this.css</a></li>
<li><a href="#trunksrcwpadminincludesclasswppressthisphp">trunk/src/wp-admin/includes/class-wp-press-this.php</a></li>
<li><a href="#trunksrcwpadminjspressthisjs">trunk/src/wp-admin/js/press-this.js</a></li>
<li><a href="#trunksrcwpadminjstagsboxjs">trunk/src/wp-admin/js/tags-box.js</a></li>
<li><a href="#trunksrcwpadmintoolsphp">trunk/src/wp-admin/tools.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpadmincsspressthiscss"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/css/press-this.css</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/css/press-this.css     2015-02-27 01:54:48 UTC (rev 31565)
+++ trunk/src/wp-admin/css/press-this.css       2015-02-27 02:49:05 UTC (rev 31566)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -217,9 +217,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> fieldset {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        border: 1px solid #c0c0c0;
-       margin: 0 2px;
-       padding: 0.35em 0.625em 0.75em;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ border: 0;
+       margin: 0;
+       padding: 0;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> legend {
</span></span></pre></div>
<a id="trunksrcwpadminincludesclasswppressthisphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/class-wp-press-this.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/class-wp-press-this.php       2015-02-27 01:54:48 UTC (rev 31565)
+++ trunk/src/wp-admin/includes/class-wp-press-this.php 2015-02-27 02:49:05 UTC (rev 31566)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -537,6 +537,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                                ?>
</span><span class="cx" style="display: block; padding: 0 10px">                                <div id="post-formats-select">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                <fieldset><legend class="screen-reader-text"><?php _e( 'Post formats' ); ?></legend>
</ins><span class="cx" style="display: block; padding: 0 10px">                                         <input type="radio" name="post_format" class="post-format" id="post-format-0" value="0" <?php checked( $post_format, '0' ); ?> />
</span><span class="cx" style="display: block; padding: 0 10px">                                        <label for="post-format-0" class="post-format-icon post-format-standard"><?php echo get_post_format_string( 'standard' ); ?></label>
</span><span class="cx" style="display: block; padding: 0 10px">                                        <?php
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -550,6 +551,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                                <?php
</span><span class="cx" style="display: block; padding: 0 10px">                                         }
</span><span class="cx" style="display: block; padding: 0 10px">                                         ?>
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                </fieldset>
</ins><span class="cx" style="display: block; padding: 0 10px">                                 </div>
</span><span class="cx" style="display: block; padding: 0 10px">                                <?php
</span><span class="cx" style="display: block; padding: 0 10px">                        }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -569,8 +571,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                if ( current_user_can( $taxonomy->cap->edit_terms ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        ?>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        <button type="button" class="add-cat-toggle button-subtle">
-                               <span class="dashicons dashicons-plus"></span>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 <button type="button" class="add-cat-toggle button-subtle" aria-expanded="false">
+                               <span class="dashicons dashicons-plus"></span><span class="screen-reader-text"><?php _e( 'Toggle add category' ); ?></span>
</ins><span class="cx" style="display: block; padding: 0 10px">                         </button>
</span><span class="cx" style="display: block; padding: 0 10px">                        <div class="add-category is-hidden">
</span><span class="cx" style="display: block; padding: 0 10px">                                <label class="screen-reader-text" for="new-category"><?php echo $taxonomy->labels->add_new_item; ?></label>
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -592,12 +594,12 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        </div>
</span><span class="cx" style="display: block; padding: 0 10px">                <?php } ?>
</span><span class="cx" style="display: block; padding: 0 10px">                <div class="categories-search-wrapper">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        <input id="categories-search" type="search" class="categories-search" placeholder="<?php esc_attr_e( 'Search categories' ) ?>">
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 <input id="categories-search" type="search" class="categories-search" placeholder="<?php esc_attr_e( 'Search categories by name' ) ?>">
</ins><span class="cx" style="display: block; padding: 0 10px">                         <label for="categories-search">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                <span class="dashicons dashicons-search"></span>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         <span class="dashicons dashicons-search"></span><span class="screen-reader-text"><?php _e( 'Search categories' ); ?></span>
</ins><span class="cx" style="display: block; padding: 0 10px">                         </label>
</span><span class="cx" style="display: block; padding: 0 10px">                </div>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                <ul class="categories-select">
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         <ul class="categories-select" aria-label="<?php esc_attr_e( 'Categories' ); ?>">
</ins><span class="cx" style="display: block; padding: 0 10px">                         <?php wp_terms_checklist( $post->ID, array( 'taxonomy' => 'category' ) ); ?>
</span><span class="cx" style="display: block; padding: 0 10px">                </ul>
</span><span class="cx" style="display: block; padding: 0 10px">                <?php
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -645,9 +647,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                <?php
</span><span class="cx" style="display: block; padding: 0 10px">                if ( $user_can_assign_terms ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        ?>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        <p>
-                               <a href="#titlediv" class="tagcloud-link" id="link-post_tag"><?php echo $taxonomy->labels->choose_from_most_used; ?></a>
-                       </p>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 <button type="button" class="button-reset button-link tagcloud-link" id="link-post_tag"><?php echo $taxonomy->labels->choose_from_most_used; ?></button>
</ins><span class="cx" style="display: block; padding: 0 10px">                         <?php
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -756,6 +756,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        <div id="scanbar" class="scan">
</span><span class="cx" style="display: block; padding: 0 10px">                <form method="GET">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                        <label for="url-scan" class="screen-reader-text"><?php _e( 'Scan site for content' ); ?></label>
</ins><span class="cx" style="display: block; padding: 0 10px">                         <input type="url" name="u" id="url-scan" class="scan-url" value="" placeholder="<?php esc_attr_e( 'Enter a URL to scan' ) ?>" />
</span><span class="cx" style="display: block; padding: 0 10px">                        <input type="submit" name="url-scan-submit" id="url-scan-submit" class="scan-submit" value="<?php esc_attr_e( 'Scan' ) ?>" />
</span><span class="cx" style="display: block; padding: 0 10px">                </form>
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -842,19 +843,29 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        <?php if ( $supports_formats ) : ?>
</span><span class="cx" style="display: block; padding: 0 10px">                                <div class="setting-modal is-off-screen is-hidden">
</span><span class="cx" style="display: block; padding: 0 10px">                                        <button type="button" class="button-reset modal-close">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                                <span class="dashicons dashicons-arrow-left-alt2"></span><span class="setting-title"><?php _e( 'Post format' ); ?></span>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                         <span class="dashicons dashicons-arrow-left-alt2"></span>
+                                               <span class="setting-title" aria-hidden="true"><?php _e( 'Post format' ); ?></span>
+                                               <span class="screen-reader-text"><?php _e( 'Back to post options' ) ?></span>
</ins><span class="cx" style="display: block; padding: 0 10px">                                         </button>
</span><span class="cx" style="display: block; padding: 0 10px">                                        <?php $this->post_formats_html( $post ); ?>
</span><span class="cx" style="display: block; padding: 0 10px">                                </div>
</span><span class="cx" style="display: block; padding: 0 10px">                        <?php endif; ?>
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                        <div class="setting-modal is-off-screen is-hidden">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                <button type="button" class="button-reset modal-close"><span class="dashicons dashicons-arrow-left-alt2"></span><span class="setting-title"><?php _e( 'Categories' ); ?></span></button>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         <button type="button" class="button-reset modal-close">
+                                       <span class="dashicons dashicons-arrow-left-alt2"></span>
+                                       <span class="setting-title" aria-hidden="true"><?php _e( 'Categories' ); ?></span>
+                                       <span class="screen-reader-text"><?php _e( 'Back to post options' ) ?></span>
+                               </button>
</ins><span class="cx" style="display: block; padding: 0 10px">                                 <?php $this->categories_html( $post ); ?>
</span><span class="cx" style="display: block; padding: 0 10px">                        </div>
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                        <div class="setting-modal tags is-off-screen is-hidden">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                <button type="button" class="button-reset modal-close"><span class="dashicons dashicons-arrow-left-alt2"></span><span class="setting-title"><?php _e( 'Tags' ); ?></span></button>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         <button type="button" class="button-reset modal-close">
+                                       <span class="dashicons dashicons-arrow-left-alt2"></span>
+                                       <span class="setting-title" aria-hidden="true"><?php _e( 'Tags' ); ?></span>
+                                       <span class="screen-reader-text"><?php _e( 'Back to post options' ) ?></span>
+                               </button>
</ins><span class="cx" style="display: block; padding: 0 10px">                                 <?php $this->tags_html( $post ); ?>
</span><span class="cx" style="display: block; padding: 0 10px">                        </div>
</span><span class="cx" style="display: block; padding: 0 10px">                </div><!-- .options-panel -->
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -876,8 +887,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        <?php
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                // TODO: consider running "special" press-this hooks here?
-               // Maybe better so we don't output stuff accidentally added by plugins. Would probably prevent some errors.
</del><span class="cx" style="display: block; padding: 0 10px">                 do_action( 'admin_footer', '' );
</span><span class="cx" style="display: block; padding: 0 10px">                do_action( 'admin_print_footer_scripts' );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="trunksrcwpadminjspressthisjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/js/press-this.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/js/press-this.js       2015-02-27 01:54:48 UTC (rev 31565)
+++ trunk/src/wp-admin/js/press-this.js 2015-02-27 02:49:05 UTC (rev 31566)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -540,10 +540,17 @@
</span><span class="cx" style="display: block; padding: 0 10px">                 * Save a new user-generated category via AJAX
</span><span class="cx" style="display: block; padding: 0 10px">                 */
</span><span class="cx" style="display: block; padding: 0 10px">                function saveNewCategory() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        var data = {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 var data,
+                               name = $( '#new-category' ).val();
+
+                       if ( ! name ) {
+                               return;
+                       }
+
+                       data = {
</ins><span class="cx" style="display: block; padding: 0 10px">                                 action: 'press-this-add-category',
</span><span class="cx" style="display: block; padding: 0 10px">                                post_id: $( '#post_ID' ).val() || 0,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                name: $( '#new-category' ).val() || '',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         name: name,
</ins><span class="cx" style="display: block; padding: 0 10px">                                 new_cat_nonce: $( '#_ajax_nonce-add-category' ).val() || '',
</span><span class="cx" style="display: block; padding: 0 10px">                                parent: $( '#new-category-parent' ).val() || 0
</span><span class="cx" style="display: block; padding: 0 10px">                        };
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -810,7 +817,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                $targetSettingModal
</span><span class="cx" style="display: block; padding: 0 10px">                                        .removeClass( isOffScreen + ' ' + isHidden )
</span><span class="cx" style="display: block; padding: 0 10px">                                        .one( transitionEndEvent, function() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                                $( this ).find( $modalClose ).focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                         $( this ).find( '.modal-close' ).focus();
</ins><span class="cx" style="display: block; padding: 0 10px">                                         } );
</span><span class="cx" style="display: block; padding: 0 10px">                        } );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -827,16 +834,16 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                        .addClass( isOffScreen )
</span><span class="cx" style="display: block; padding: 0 10px">                                        .one( transitionEndEvent, function() {
</span><span class="cx" style="display: block; padding: 0 10px">                                                $( this ).addClass( isHidden );
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                                $postOption.eq( index - 1 ).focus();
</ins><span class="cx" style="display: block; padding: 0 10px">                                         } );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                                // For browser that don't support transitionend.
</span><span class="cx" style="display: block; padding: 0 10px">                                if ( ! transitionEndEvent ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                        setTimeout( function() {
</span><span class="cx" style="display: block; padding: 0 10px">                                                $targetSettingModal.addClass( isHidden );
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                                $postOption.eq( index - 1 ).focus();
</ins><span class="cx" style="display: block; padding: 0 10px">                                         }, 350 );
</span><span class="cx" style="display: block; padding: 0 10px">                                }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-
-                               $postOption.eq( index - 1 ).focus();
</del><span class="cx" style="display: block; padding: 0 10px">                         } );
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -963,14 +970,16 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        } );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                        $( 'button.add-cat-toggle' ).on( 'click.press-this', function() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                $( this ).toggleClass( 'is-toggled' );
-                               $( '.setting-modal .add-category' ).toggleClass( 'is-hidden' );
-                               $( '.categories-search-wrapper' ).toggleClass( 'is-hidden' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         var $this = $( this );
+
+                               $this.toggleClass( 'is-toggled' );
+                               $this.attr( 'aria-expanded', ! $this.attr( 'aria-expanded' ) );
+                               $( '.setting-modal .add-category, .categories-search-wrapper' ).toggleClass( 'is-hidden' );
</ins><span class="cx" style="display: block; padding: 0 10px">                         } );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                        $( 'button.add-cat-submit' ).on( 'click.press-this', saveNewCategory );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        $( '.categories-search' ).on( 'keyup', function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 $( '.categories-search' ).on( 'keyup.press-this', function() {
</ins><span class="cx" style="display: block; padding: 0 10px">                                 var search = $( this ).val().toLowerCase() || '';
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                                // Don't search when less thasn 3 extended ASCII chars
</span></span></pre></div>
<a id="trunksrcwpadminjstagsboxjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/js/tags-box.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/js/tags-box.js 2015-02-27 01:54:48 UTC (rev 31565)
+++ trunk/src/wp-admin/js/tags-box.js   2015-02-27 02:49:05 UTC (rev 31566)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -18,7 +18,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                return out;
</span><span class="cx" style="display: block; padding: 0 10px">        };
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px">         tagBox = {
</span><span class="cx" style="display: block; padding: 0 10px">                clean : function(tags) {
</span><span class="cx" style="display: block; padding: 0 10px">                        var comma = window.tagsBoxL10n.tagDelimiter;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -193,7 +193,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        });
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                        // tag cloud
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        $('a.tagcloud-link').click(function(){
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 $('.tagcloud-link').click(function(){
</ins><span class="cx" style="display: block; padding: 0 10px">                                 tagBox.get( $(this).attr('id') );
</span><span class="cx" style="display: block; padding: 0 10px">                                $(this).unbind().click(function(){
</span><span class="cx" style="display: block; padding: 0 10px">                                        $(this).siblings('.the-tagcloud').toggle();
</span></span></pre></div>
<a id="trunksrcwpadmintoolsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/tools.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/tools.php      2015-02-27 01:54:48 UTC (rev 31565)
+++ trunk/src/wp-admin/tools.php        2015-02-27 02:49:05 UTC (rev 31566)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -57,7 +57,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        </button>
</span><span class="cx" style="display: block; padding: 0 10px">                </p>
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                <div class="hidden js-pressthis-code-wrap">
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         <div class="hidden js-pressthis-code-wrap" id="pressthis-code-wrap">
</ins><span class="cx" style="display: block; padding: 0 10px">                         <p id="pressthis-code-desc">
</span><span class="cx" style="display: block; padding: 0 10px">                                <?php _e( 'If you can\'t drag it to your bookmarks, copy the following code and create new bookmark. Paste the code into the new bookmark\'s URL field.' ) ?>
</span><span class="cx" style="display: block; padding: 0 10px">                        </p>
</span></span></pre>
</div>
</div>

</body>
</html>