<!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>[33511] trunk: Menu customizer: More clearly separate search results from available items.</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/33511">33511</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/33511","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>helen</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2015-07-29 23:39:54 +0000 (Wed, 29 Jul 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'>Menu customizer: More clearly separate search results from available items.
Available items now fade from view while you're searching, and there is an explicit way to clear search results. No results gives a better message, though still brief this time around.
props valendesigns, designsimply, DH-Shredder, helen.
fixes <a href="https://core.trac.wordpress.org/ticket/32710">#32710</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpadmincsscustomizenavmenuscss">trunk/src/wp-admin/css/customize-nav-menus.css</a></li>
<li><a href="#trunksrcwpadminjsaccordionjs">trunk/src/wp-admin/js/accordion.js</a></li>
<li><a href="#trunksrcwpadminjscustomizenavmenusjs">trunk/src/wp-admin/js/customize-nav-menus.js</a></li>
<li><a href="#trunksrcwpincludesclasswpcustomizenavmenusphp">trunk/src/wp-includes/class-wp-customize-nav-menus.php</a></li>
<li><a href="#trunktestsphpunittestsajaxCustomizeMenusphp">trunk/tests/phpunit/tests/ajax/CustomizeMenus.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpadmincsscustomizenavmenuscss"></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/customize-nav-menus.css</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/css/customize-nav-menus.css 2015-07-29 23:24:17 UTC (rev 33510)
+++ trunk/src/wp-admin/css/customize-nav-menus.css 2015-07-29 23:39:54 UTC (rev 33511)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -590,7 +590,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> bottom: 0;
</span><span class="cx" style="display: block; padding: 0 10px"> left: -301px;
</span><span class="cx" style="display: block; padding: 0 10px"> visibility: hidden;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- overflow: hidden;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ overflow-x: hidden;
+ overflow-y: auto;
</ins><span class="cx" style="display: block; padding: 0 10px"> width: 300px;
</span><span class="cx" style="display: block; padding: 0 10px"> margin: 0;
</span><span class="cx" style="display: block; padding: 0 10px"> z-index: 4;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -600,17 +601,23 @@
</span><span class="cx" style="display: block; padding: 0 10px"> border-right: 1px solid #ddd;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-#available-menu-items.allow-scroll {
- overflow-y: auto;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+#available-menu-items.opening {
+ overflow-y: hidden; /* avoid scrollbar jitter with animating heights */
</ins><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">+#available-menu-items #available-menu-items-search.open {
+ height: 100%;
+ border-bottom: none;
+}
+
</ins><span class="cx" style="display: block; padding: 0 10px"> #available-menu-items .accordion-section-title {
</span><span class="cx" style="display: block; padding: 0 10px"> border-left: none;
</span><span class="cx" style="display: block; padding: 0 10px"> border-right: none;
</span><span class="cx" style="display: block; padding: 0 10px"> background: #fff;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-#available-menu-items .open .accordion-section-title {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+#available-menu-items .open .accordion-section-title,
+#available-menu-items #available-menu-items-search .accordion-section-title {
</ins><span class="cx" style="display: block; padding: 0 10px"> background: #eee;
</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">@@ -702,6 +709,15 @@
</span><span class="cx" style="display: block; padding: 0 10px"> max-height: 290px;
</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">+#available-menu-items #available-menu-items-search .accordion-section-content {
+ position: absolute;
+ left: 1px;
+ top: 60px; /* below title div / search input */
+ bottom: 0px; /* 100% height that still triggers lazy load */
+ max-height: none;
+ width: 270px;
+}
+
</ins><span class="cx" style="display: block; padding: 0 10px"> #available-menu-items .menu-item-tpl {
</span><span class="cx" style="display: block; padding: 0 10px"> margin: 0;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -802,6 +818,43 @@
</span><span class="cx" style="display: block; padding: 0 10px"> margin: 0 20px;
</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">+#available-menu-items-search .clear-results {
+ position: absolute;
+ top: 20px;
+ right: 20px;
+ width: 20px;
+ height: 20px;
+ cursor: pointer;
+ color: #a00;
+ text-decoration: none;
+}
+
+#available-menu-items-search .clear-results,
+#available-menu-items-search.loading .clear-results.is-visible {
+ display: none;
+}
+
+#available-menu-items-search .clear-results.is-visible {
+ display: block;
+}
+
+#available-menu-items-search .clear-results:before {
+ content: "\f335";
+ font: normal 20px/1 dashicons;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+}
+
+#available-menu-items-search .clear-results:hover,
+#available-menu-items-search .clear-results:focus {
+ color: #f00;
+}
+
+#available-menu-items-search .clear-results:focus {
+ -webkit-box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8);
+ box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8);
+}
+
</ins><span class="cx" style="display: block; padding: 0 10px"> #available-menu-items-search .spinner {
</span><span class="cx" style="display: block; padding: 0 10px"> position: absolute;
</span><span class="cx" style="display: block; padding: 0 10px"> top: 20px;
</span></span></pre></div>
<a id="trunksrcwpadminjsaccordionjs"></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/accordion.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/js/accordion.js 2015-07-29 23:24:17 UTC (rev 33510)
+++ trunk/src/wp-admin/js/accordion.js 2015-07-29 23:39:54 UTC (rev 33511)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -54,7 +54,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> function accordionSwitch ( el ) {
</span><span class="cx" style="display: block; padding: 0 10px"> var section = el.closest( '.accordion-section' ),
</span><span class="cx" style="display: block; padding: 0 10px"> sectionToggleControl = section.find( '[aria-expanded]' ).first(),
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- siblings = section.closest( '.accordion-container' ).find( '.open' ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ container = section.closest( '.accordion-container' ),
+ siblings = container.find( '.open' ),
</ins><span class="cx" style="display: block; padding: 0 10px"> siblingsToggleControl = siblings.find( '[aria-expanded]' ).first(),
</span><span class="cx" style="display: block; padding: 0 10px"> content = section.find( '.accordion-section-content' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -63,6 +64,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> return;
</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">+ // Add a class to the container to let us know something is happening inside.
+ // This helps in cases such as hiding a scrollbar while animations are executing.
+ container.addClass( 'opening' );
+
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( section.hasClass( 'open' ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> section.toggleClass( 'open' );
</span><span class="cx" style="display: block; padding: 0 10px"> content.toggle( true ).slideToggle( 150 );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -74,6 +79,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> section.toggleClass( 'open' );
</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">+ // We have to wait for the animations to finish
+ setTimeout(function(){
+ container.removeClass( 'opening' );
+ }, 150);
+
</ins><span class="cx" style="display: block; padding: 0 10px"> // If there's an element with an aria-expanded attribute, assume it's a toggle control and toggle the aria-expanded value.
</span><span class="cx" style="display: block; padding: 0 10px"> if ( sectionToggleControl ) {
</span><span class="cx" style="display: block; padding: 0 10px"> sectionToggleControl.attr( 'aria-expanded', String( sectionToggleControl.attr( 'aria-expanded' ) === 'false' ) );
</span></span></pre></div>
<a id="trunksrcwpadminjscustomizenavmenusjs"></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/customize-nav-menus.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/js/customize-nav-menus.js 2015-07-29 23:24:17 UTC (rev 33510)
+++ trunk/src/wp-admin/js/customize-nav-menus.js 2015-07-29 23:39:54 UTC (rev 33511)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -96,7 +96,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> events: {
</span><span class="cx" style="display: block; padding: 0 10px"> 'input #menu-items-search': 'debounceSearch',
</span><span class="cx" style="display: block; padding: 0 10px"> 'keyup #menu-items-search': 'debounceSearch',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'click #menu-items-search': 'debounceSearch',
</del><span class="cx" style="display: block; padding: 0 10px"> 'focus .menu-item-tpl': 'focus',
</span><span class="cx" style="display: block; padding: 0 10px"> 'click .menu-item-tpl': '_submit',
</span><span class="cx" style="display: block; padding: 0 10px"> 'click #custom-menu-item-submit': '_submitLink',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -138,6 +137,20 @@
</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">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Clear the search results.
+ $( '.clear-results' ).on( 'click keydown', function( event ) {
+ console.log(event);
+ if ( event.type === 'keydown' && ( 13 !== event.which && 32 !== event.which ) ) { // "return" or "space" keys only
+ return;
+ }
+
+ event.preventDefault();
+
+ $( '#menu-items-search' ).val( '' ).focus();
+ event.target.value = '';
+ self.search( event );
+ } );
+
</ins><span class="cx" style="display: block; padding: 0 10px"> this.$el.on( 'input', '#custom-menu-item-name.invalid, #custom-menu-item-url.invalid', function() {
</span><span class="cx" style="display: block; padding: 0 10px"> $( this ).removeClass( 'invalid' );
</span><span class="cx" style="display: block; padding: 0 10px"> });
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -176,25 +189,31 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Search input change handler.
</span><span class="cx" style="display: block; padding: 0 10px"> search: function( event ) {
</span><span class="cx" style="display: block; padding: 0 10px"> var $searchSection = $( '#available-menu-items-search' ),
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $openSections = $( '#available-menu-items .accordion-section.open' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $otherSections = $( '#available-menu-items .accordion-section' ).not( $searchSection );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! event ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // Manual accordion-opening behavior.
- if ( this.searchTerm && ! $searchSection.hasClass( 'open' ) ) {
- $openSections.find( '.accordion-section-content' ).slideUp( 'fast' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+ if ( this.searchTerm === event.target.value ) {
+ return;
+ }
+
+ if ( '' !== event.target.value && ! $searchSection.hasClass( 'open' ) ) {
+ $otherSections.fadeOut( 100 );
</ins><span class="cx" style="display: block; padding: 0 10px"> $searchSection.find( '.accordion-section-content' ).slideDown( 'fast' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $openSections.find( '[aria-expanded]' ).first().attr( 'aria-expanded', 'false' );
- $openSections.removeClass( 'open' );
</del><span class="cx" style="display: block; padding: 0 10px"> $searchSection.addClass( 'open' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- }
- if ( '' === event.target.value ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $searchSection.find( '.clear-results' )
+ .prop( 'tabIndex', 0 )
+ .addClass( 'is-visible' );
+ } else if ( '' === event.target.value ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $searchSection.removeClass( 'open' );
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $otherSections.show();
+ $searchSection.find( '.clear-results' )
+ .prop( 'tabIndex', -1 )
+ .removeClass( 'is-visible' );
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- if ( this.searchTerm === event.target.value ) {
- return;
- }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px"> this.searchTerm = event.target.value;
</span><span class="cx" style="display: block; padding: 0 10px"> this.pages.search = 1;
</span><span class="cx" style="display: block; padding: 0 10px"> this.doSearch( 1 );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -351,8 +370,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> diff = totalHeight - accordionHeight;
</span><span class="cx" style="display: block; padding: 0 10px"> if ( 120 < diff && 290 > diff ) {
</span><span class="cx" style="display: block; padding: 0 10px"> sections.css( 'max-height', diff );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- } else if ( 120 >= diff ) {
- this.$el.addClass( 'allow-scroll' );
</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></pre></div>
<a id="trunksrcwpincludesclasswpcustomizenavmenusphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/class-wp-customize-nav-menus.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-customize-nav-menus.php 2015-07-29 23:24:17 UTC (rev 33510)
+++ trunk/src/wp-includes/class-wp-customize-nav-menus.php 2015-07-29 23:39:54 UTC (rev 33511)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -217,7 +217,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $items = $this->search_available_items_query( array( 'pagenum' => $p, 's' => $s ) );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( empty( $items ) ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- wp_send_json_error( array( 'message' => __( 'No menu items found.' ) ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ wp_send_json_error( array( 'message' => __( 'No results found.' ) ) );
</ins><span class="cx" style="display: block; padding: 0 10px"> } else {
</span><span class="cx" style="display: block; padding: 0 10px"> wp_send_json_success( array( 'items' => $items ) );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -718,6 +718,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> <input type="text" id="menu-items-search" placeholder="<?php esc_attr_e( 'Search menu items…' ) ?>" aria-describedby="menu-items-search-desc" />
</span><span class="cx" style="display: block; padding: 0 10px"> <p class="screen-reader-text" id="menu-items-search-desc"><?php _e( 'The search results will be updated as you type.' ); ?></p>
</span><span class="cx" style="display: block; padding: 0 10px"> <span class="spinner"></span>
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <span class="clear-results"><span class="screen-reader-text"><?php _e( 'Clear Results' ); ?></span></span>
</ins><span class="cx" style="display: block; padding: 0 10px"> </div>
</span><span class="cx" style="display: block; padding: 0 10px"> <ul class="accordion-section-content" data-type="search"></ul>
</span><span class="cx" style="display: block; padding: 0 10px"> </div>
</span></span></pre></div>
<a id="trunktestsphpunittestsajaxCustomizeMenusphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/ajax/CustomizeMenus.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/ajax/CustomizeMenus.php 2015-07-29 23:24:17 UTC (rev 33510)
+++ trunk/tests/phpunit/tests/ajax/CustomizeMenus.php 2015-07-29 23:39:54 UTC (rev 33511)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -520,7 +520,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'success' => false,
</span><span class="cx" style="display: block; padding: 0 10px"> 'data' => array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'message' => 'No menu items found.',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'message' => 'No results found.',
</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></pre>
</div>
</div>
</body>
</html>