Make WordPress Core

Ticket #27151: 47540[1].patch

File 47540[1].patch, 34.2 KB (added by Mahesh901122, 6 years ago)
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml">
3 
4 
5
6 
7
8
9
10
11
12
13  <head>
14    <title>
15      47540.patch on Ticket #47540 – Attachment
16     – WordPress Trac
17    </title>
18      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
19      <meta http-equiv="X-UA-Compatible" content="IE=edge" />
20    <!--[if IE]><script type="text/javascript">
21      if (/^#__msie303:/.test(window.location.hash))
22        window.location.replace(window.location.hash.replace(/^#__msie303:/, '#'));
23    </script><![endif]-->
24          <link rel="search" href="/search" />
25          <link rel="help" href="/wiki/TracGuide" />
26          <link rel="alternate" href="/raw-attachment/ticket/47540/47540.patch" type="text/x-diff; charset=utf-8" title="Original Format" />
27          <link rel="up" href="/ticket/47540" title="Ticket #47540" />
28          <link rel="start" href="/wiki" />
29        <link rel="stylesheet" href="https://s.w.org/style/trac/common/css/trac.css?v=117" />
30        <link rel="stylesheet" href="https://s.w.org/style/trac/common/css/diff.css?v=117" />
31        <link rel="stylesheet" href="https://s.w.org/style/trac/common/css/code.css?v=117" />
32          <link rel="icon" href="/chrome/common/trac.ico" type="image/x-icon" />
33    <style id="trac-noscript" type="text/css">.trac-noscript { display: none !important }</style>
34      <link type="application/opensearchdescription+xml" rel="search" href="/search/opensearch" title="Search WordPress Trac" />
35        <link rel="dns-prefetch" href="//s.w.org" />
36        <link rel="dns-prefetch" href="//fonts.googleapis.com" />
37        <link rel="dns-prefetch" href="//fonts.gstatic.com" />
38        <link rel="dns-prefetch" href="//www.googletagmanager.com" />
39        <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
40                new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
41                j=d.createElement(s);j.async=true;j.src=
42                'https://www.googletagmanager.com/gtm.js?id='+i;f.parentNode.insertBefore(j,f);
43        })(window,document,'script','dataLayer','GTM-5Z8B3BX');</script>
44        <script>
45                // <![CDATA[
46                window._wpemojiSettings = {"baseUrl":"https:\/\/s.w.org\/images\/core\/emoji\/11.2.0\/72x72\/","ext":".png","svgUrl":"https:\/\/s.w.org\/images\/core\/emoji\/11.2.0\/svg\/","svgExt":".svg","source":{"concatemoji":"https:\/\/s.w.org\/wp-includes\/js\/wp-emoji-release.min.js?ver=20180127"}};
47                !function(a,b,c){function d(a,b){var c=String.fromCharCode;l.clearRect(0,0,k.width,k.height),l.fillText(c.apply(this,a),0,0);var d=k.toDataURL();l.clearRect(0,0,k.width,k.height),l.fillText(c.apply(this,b),0,0);var e=k.toDataURL();return d===e}function e(a){var b;if(!l||!l.fillText)return!1;switch(l.textBaseline="top",l.font="600 32px Arial",a){case"flag":return!(b=d([55356,56826,55356,56819],[55356,56826,8203,55356,56819]))&&(b=d([55356,57332,56128,56423,56128,56418,56128,56421,56128,56430,56128,56423,56128,56447],[55356,57332,8203,56128,56423,8203,56128,56418,8203,56128,56421,8203,56128,56430,8203,56128,56423,8203,56128,56447]),!b);case"emoji":return b=d([55358,56760,9792,65039],[55358,56760,8203,9792,65039]),!b}return!1}function f(a){var c=b.createElement("script");c.src=a,c.defer=c.type="text/javascript",b.getElementsByTagName("head")[0].appendChild(c)}var g,h,i,j,k=b.createElement("canvas"),l=k.getContext&&k.getContext("2d");for(j=Array("flag","emoji"),c.supports={everything:!0,everythingExceptFlag:!0},i=0;i<j.length;i++)c.supports[j[i]]=e(j[i]),c.supports.everything=c.supports.everything&&c.supports[j[i]],"flag"!==j[i]&&(c.supports.everythingExceptFlag=c.supports.everythingExceptFlag&&c.supports[j[i]]);c.supports.everythingExceptFlag=c.supports.everythingExceptFlag&&!c.supports.flag,c.DOMReady=!1,c.readyCallback=function(){c.DOMReady=!0},c.supports.everything||(h=function(){c.readyCallback()},b.addEventListener?(b.addEventListener("DOMContentLoaded",h,!1),a.addEventListener("load",h,!1)):(a.attachEvent("onload",h),b.attachEvent("onreadystatechange",function(){"complete"===b.readyState&&c.readyCallback()})),g=c.source||{},g.concatemoji?f(g.concatemoji):g.wpemoji&&g.twemoji&&(f(g.twemoji),f(g.wpemoji)))}(window,document,window._wpemojiSettings);
48                // ]]>
49        </script>
50        <style>
51                img.emoji {
52                        display: inline !important;
53                        border: none !important;
54                        box-shadow: none !important;
55                        height: 1em !important;
56                        width: 1em !important;
57                        margin: 0 .07em !important;
58                        vertical-align: -0.1em !important;
59                        background: none !important;
60                        padding: 0 !important;
61                }
62        </style>
63        <link href="https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,400,300,600&amp;subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,latin-ext,cyrillic" rel="stylesheet" type="text/css" />
64        <link rel="stylesheet" href="https://s.w.org/style/wp4.css?78" />
65        <!--[if lte IE 8]>
66        <style type="text/css">
67        @import url("https://s.w.org/style/ie.css?1");
68        </style>
69        <![endif]-->
70        <meta name="viewport" content="width=device-width" />
71        <link rel="stylesheet" href="https://s.w.org/wp-includes/css/dashicons.min.css?20150710" type="text/css" />
72        <link rel="stylesheet" type="text/css" href="https://s.w.org/style/trac/wp-trac.css?117" />
73        <script src="https://s.w.org/style/trac/common/js/jquery.js?v=117"></script>
74                <meta name="robots" content="noindex, follow" />
75        <script src="https://s.w.org/style/trac/common/js/babel.js?v=117"></script>
76        <script src="https://s.w.org/style/trac/common/js/trac.js?v=117"></script>
77        <script src="https://s.w.org/style/trac/common/js/search.js?v=117"></script>
78        <script src="https://s.w.org/style/trac/common/js/diff.js?v=117"></script>
79    <script type="text/javascript">
80      jQuery("#trac-noscript").remove();
81      jQuery(document).ready(function($) {
82        $(".trac-autofocus").focus();
83        $(".trac-target-new").attr("target", "_blank");
84        if ($.ui) { /* is jquery-ui added? */
85          $(".trac-datepicker:not([readonly])").prop("autocomplete", "off").datepicker();
86          $(".trac-datetimepicker:not([readonly])").prop("autocomplete", "off").datetimepicker();
87          $("#main").addClass("trac-nodatetimehint");
88        }
89        $(".trac-disable").disableSubmit(".trac-disable-determinant");
90        setTimeout(function() { $(".trac-scroll").scrollToTop() }, 1);
91        $(".trac-disable-on-submit").disableOnSubmit();
92      });
93    </script>
94        <script src="https://s.w.org/style/trac/common/js/folding.js?v=117"></script>
95      <script type="text/javascript">
96        jQuery(document).ready(function($) {
97          $('#preview table.code').enableCollapsibleColumns($('#preview table.code thead th.content'));
98        });
99      </script>
100<link rel="stylesheet" href="https://s.w.org/wp-content/plugins/trac-notifications/make-core.css?ver=3" />
101</head>
102  <body id="wordpress-org" class="core trac wporg-make make-core">
103        <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5Z8B3BX" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
104<div id="wporg-header">
105    <div class="wrapper">
106        <h1><a href="https://wordpress.org">WordPress.org</a></h1>
107        <div id="head-search">
108            <form action="https://wordpress.org/search/do-search.php" method="get">
109                <label for="global-search" class="screen-reader-text">Search WordPress.org for:</label>
110                <input id="global-search" class="text" name="search" type="text" value="" maxlength="150" placeholder="Search WordPress.org" />
111                <button type="submit" class="button"><span class="screen-reader-text">Submit</span></button>
112            </form>
113        </div>
114        <div style="clear:both"></div>
115        <button id="mobile-menu-button" aria-expanded="false"><span class="screen-reader-text">Toggle Menu</span></button>
116        <ul id="wporg-header-menu">
117            <li><a href="https://wordpress.org/showcase/" data-title="See some of the sites built on WordPress.">Showcase</a></li>
118            <li><a href="https://wordpress.org/themes/" data-title="Find just the right look for your website.">Themes</a></li>
119            <li><a href="https://wordpress.org/plugins/" data-title="Plugins can extend WordPress to do almost anything you can imagine.">Plugins</a>
120                <div class="uparrow"></div>
121            </li>
122            <li><a href="https://wordpress.org/mobile/" data-title="Take your website on the go!">Mobile</a></li>
123            <li><a href="https://wordpress.org/support/" data-title="Forums, documentation, help.">Support</a>
124                <ul class="nav-submenu">
125                    <li><a href="https://wordpress.org/support/" data-title="Documentation, tutorials, best practices.">Documentation</a></li>
126                    <li><a href="https://wordpress.org/support/forums/" data-title="Support and discussion forums.">Forums</a></li>
127                </ul>
128                <div class="uparrow"></div>
129            </li>
130            <li><a href="https://make.wordpress.org/" data-title="Contribute your knowledge." class="current">Get Involved</a>
131                <div class="uparrow"></div>
132            </li>
133            <li><a href="https://wordpress.org/about/" data-title="About the WordPress Organization, and where we're going.">About</a></li>
134            <li><a href="https://wordpress.org/news/" data-title="Come here for the latest scoop.">Blog</a></li>
135            <li><a href="https://wordpress.org/hosting/" data-title="Find a home for your blog.">Hosting</a></li>
136            <li id="download" class="button download-button"><a href="https://wordpress.org/download/" data-title="Get it. Got it? Good.">Download WordPress</a></li>
137        </ul>
138        <div style="clear:both"></div>
139    </div>
140</div>
141        <div id="headline">
142                <div class="wrapper">
143                        <h2><a href="https://make.wordpress.org/core/">Make WordPress Core</a></h2>
144                        <div class="menu-container"><ul class="menu">
145                                <li><a href="https://make.wordpress.org/core/">Blog</a></li>
146                                <li><a href="https://make.wordpress.org/core/handbook/">Handbook</a></li>
147                                <li><a class="open-ticket-report" href="https://make.wordpress.org/core/reports/">Tickets</a></li>
148                                <li><a href="https://make.wordpress.org/core/components/">Components</a></li>
149                                <li class="icon browser"><a title="Browse Source" href="https://core.trac.wordpress.org/browser">Browse Source</a></li>
150                                <li class="icon timeline"><a title="Trac Timeline" href="https://core.trac.wordpress.org/timeline">Trac Timeline</a></li>
151                                <li class="icon newticket"><a title="Create a New Ticket" href="https://login.wordpress.org/?redirect_to=https://core.trac.wordpress.org/newticket">Create a New Ticket</a></li>
152                        </ul></div>
153                </div>
154        </div>
155    <div id="banner">
156      <form id="search" action="/search" method="get">
157        <div>
158          <label for="proj-search">Search:</label>
159          <input type="text" id="proj-search" name="q" size="18" value="" />
160          <input type="submit" value="Search" />
161        </div>
162      </form>
163      <div id="metanav" class="nav">
164    <ul>
165      <li class="first"><a href="/login">Login</a></li><li class="last"><a href="https://make.wordpress.org/core/notifications/">Notifications</a></li>
166    </ul>
167  </div>
168    </div>
169    <div id="mainnav" class="nav">
170  </div>
171    <div id="main">
172      <div id="ctxtnav" class="nav">
173        <h2>Context Navigation</h2>
174        <ul>
175          <li class="last first"><a href="/ticket/47540">Back to Ticket #47540</a></li>
176        </ul>
177        <hr />
178      </div>
179    <div id="content" class="attachment">
180        <h1><a href="/ticket/47540">Ticket #47540</a>: 47540.patch</h1>
181        <table id="info" summary="Description">
182          <tr>
183            <th scope="col">File 47540.patch, <span title="2969 bytes">2.9 KB</span> (added by <span class="trac-author">Mahesh901122</span>, <a class="timeline" href="/timeline?from=2019-06-14T07%3A06%3A58Z&amp;precision=second" title="See timeline at 06/14/2019 07:06:58 AM">4 days ago</a>)</th>
184          </tr>
185          <tr>
186            <td class="message searchable">
187             
188            </td>
189          </tr>
190        </table>
191        <div id="preview" class="searchable">
192         
193  <div class="diff">
194  <ul class="entries">
195      <li class="entry">
196        <h2>
197          <a>src/js/_enqueues/admin/widgets.js</a>
198        </h2>
199        <table class="trac-diff inline" summary="Differences" cellspacing="0">
200              <colgroup><col class="lineno" /><col class="lineno" /><col class="content" /></colgroup>
201              <thead>
202                <tr>
203                  <th title="File src/js/_enqueues/admin/widgets.js (revision 45536)">
204                  </th>
205                  <th title="File src/js/_enqueues/admin/widgets.js (working copy)">
206                  </th>
207                  <td><em></em> </td>
208                </tr>
209              </thead>
210            <tbody class="unmod">
211                  <tr>
212                          <th>501</th><th>501</th><td class="l"><span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; self.closeChooser();</span></td>
213                  </tr><tr>
214                          <th>502</th><th>502</th><td class="l"><span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</span></td>
215                  </tr><tr>
216                          <th>503</th><th>503</th><td class="l"><span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });</span></td>
217                  </tr>
218            </tbody><tbody class="add">
219                  <tr class="first">
220                          <th> </th><th>504</th><td class="r"><ins></ins></td>
221                  </tr><tr>
222                          <th> </th><th>505</th><td class="r"><ins>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /**</ins></td>
223                  </tr><tr>
224                          <th> </th><th>506</th><td class="r"><ins>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;* Use feature detection to determine whether inputs should use</ins></td>
225                  </tr><tr>
226                          <th> </th><th>507</th><td class="r"><ins>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;* the `keyup` or `input` event. Input is preferred but lacks support</ins></td>
227                  </tr><tr>
228                          <th> </th><th>508</th><td class="r"><ins>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;* in legacy browsers. See changeset 34078, see also ticket #26600#comment:59</ins></td>
229                  </tr><tr>
230                          <th> </th><th>509</th><td class="r"><ins>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*/</ins></td>
231                  </tr><tr>
232                          <th> </th><th>510</th><td class="r"><ins>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ( 'oninput' in document.createElement( 'input' ) ) {</ins></td>
233                  </tr><tr>
234                          <th> </th><th>511</th><td class="r"><ins>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inputEvent = 'input';</ins></td>
235                  </tr><tr>
236                          <th> </th><th>512</th><td class="r"><ins>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else {</ins></td>
237                  </tr><tr>
238                          <th> </th><th>513</th><td class="r"><ins>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inputEvent = 'keyup';</ins></td>
239                  </tr><tr>
240                          <th> </th><th>514</th><td class="r"><ins>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</ins></td>
241                  </tr><tr>
242                          <th> </th><th>515</th><td class="r"><ins></ins></td>
243                  </tr><tr>
244                          <th> </th><th>516</th><td class="r"><ins>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $( '#widgets-search-input' ).on( inputEvent, function() {</ins></td>
245                  </tr><tr>
246                          <th> </th><th>517</th><td class="r"><ins></ins></td>
247                  </tr><tr>
248                          <th> </th><th>518</th><td class="r"><ins>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var search_term&nbsp; &nbsp;= $('#widgets-search-input').val() || '',</ins></td>
249                  </tr><tr>
250                          <th> </th><th>519</th><td class="r"><ins>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; parent&nbsp; &nbsp; &nbsp; &nbsp; = $('#widgets-left'),</ins></td>
251                  </tr><tr>
252                          <th> </th><th>520</th><td class="r"><ins>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; widgets&nbsp; &nbsp; &nbsp; &nbsp;= parent.find('.widget'),</ins></td>
253                  </tr><tr>
254                          <th> </th><th>521</th><td class="r"><ins>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; widget_titles = parent.find('.widget-title');</ins></td>
255                  </tr><tr>
256                          <th> </th><th>522</th><td class="r"><ins></ins></td>
257                  </tr><tr>
258                          <th> </th><th>523</th><td class="r"><ins>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if( search_term.length ) {</ins></td>
259                  </tr><tr>
260                          <th> </th><th>524</th><td class="r"><ins></ins></td>
261                  </tr><tr>
262                          <th> </th><th>525</th><td class="r"><ins>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Hide all widgets. Because, Below we show those widgets</ins></td>
263                  </tr><tr>
264                          <th> </th><th>526</th><td class="r"><ins>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // which have search term in the widget title.</ins></td>
265                  </tr><tr>
266                          <th> </th><th>527</th><td class="r"><ins>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; widgets.addClass('hide-widget').removeClass('show-widget');</ins></td>
267                  </tr><tr>
268                          <th> </th><th>528</th><td class="r"><ins></ins></td>
269                  </tr><tr>
270                          <th> </th><th>529</th><td class="r"><ins>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Search widget and ONLY show these widgets which "contain" the widget title.</ins></td>
271                  </tr><tr>
272                          <th> </th><th>530</th><td class="r"><ins>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var rex = new RegExp( search_term, 'i');</ins></td>
273                  </tr><tr>
274                          <th> </th><th>531</th><td class="r"><ins>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; widget_titles.filter(function () {</ins></td>
275                  </tr><tr>
276                          <th> </th><th>532</th><td class="r"><ins>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var widget_name = $.trim( $(this).text() ) || '';</ins></td>
277                  </tr><tr>
278                          <th> </th><th>533</th><td class="r"><ins>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return rex.test( widget_name );</ins></td>
279                  </tr><tr>
280                          <th> </th><th>534</th><td class="r"><ins>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }).parents('.widget').removeClass('hide-widget').addClass('show-widget');</ins></td>
281                  </tr><tr>
282                          <th> </th><th>535</th><td class="r"><ins></ins></td>
283                  </tr><tr>
284                          <th> </th><th>536</th><td class="r"><ins>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else {</ins></td>
285                  </tr><tr>
286                          <th> </th><th>537</th><td class="r"><ins></ins></td>
287                  </tr><tr>
288                          <th> </th><th>538</th><td class="r"><ins>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Show all widgets.</ins></td>
289                  </tr><tr>
290                          <th> </th><th>539</th><td class="r"><ins>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; widgets.removeClass('hide-widget').addClass('show-widget');</ins></td>
291                  </tr><tr>
292                          <th> </th><th>540</th><td class="r"><ins>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</ins></td>
293                  </tr><tr class="last">
294                          <th> </th><th>541</th><td class="r"><ins>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });</ins></td>
295                  </tr>
296            </tbody><tbody class="unmod">
297                  <tr>
298                          <th>504</th><th>542</th><td class="l"><span>&nbsp; &nbsp; &nbsp; &nbsp; },</span></td>
299                  </tr><tr>
300                          <th>505</th><th>543</th><td class="l"><span></span></td>
301                  </tr><tr>
302                          <th>506</th><th>544</th><td class="l"><span>&nbsp; &nbsp; &nbsp; &nbsp; saveOrder : function( sidebarId ) {</span></td>
303                  </tr>
304            </tbody>
305        </table>
306      </li>
307      <li class="entry">
308        <h2>
309          <a>src/wp-admin/css/widgets.css</a>
310        </h2>
311        <table class="trac-diff inline" summary="Differences" cellspacing="0">
312              <colgroup><col class="lineno" /><col class="lineno" /><col class="content" /></colgroup>
313              <thead>
314                <tr>
315                  <th title="File src/wp-admin/css/widgets.css (revision 45536)">
316                  </th>
317                  <th title="File src/wp-admin/css/widgets.css (working copy)">
318                  </th>
319                  <td><em></em> </td>
320                </tr>
321              </thead>
322            <tbody class="unmod">
323                  <tr>
324                          <th>773</th><th>773</th><td class="l"><span>&nbsp; &nbsp; &nbsp; &nbsp; cursor: not-allowed;</span></td>
325                  </tr><tr>
326                          <th>774</th><th>774</th><td class="l"><span>}</span></td>
327                  </tr><tr>
328                          <th>775</th><th>775</th><td class="l"><span></span></td>
329                  </tr>
330            </tbody><tbody class="add">
331                  <tr class="first">
332                          <th> </th><th>776</th><td class="r"><ins>/* =Widget Search</ins></td>
333                  </tr><tr>
334                          <th> </th><th>777</th><td class="r"><ins>-------------------------------------------------------------- */</ins></td>
335                  </tr><tr>
336                          <th> </th><th>778</th><td class="r"><ins>#widgets-search-input {</ins></td>
337                  </tr><tr>
338                          <th> </th><th>779</th><td class="r"><ins>&nbsp; &nbsp; &nbsp; &nbsp; margin: 0 0 .2em 0;</ins></td>
339                  </tr><tr>
340                          <th> </th><th>780</th><td class="r"><ins>&nbsp; &nbsp; &nbsp; &nbsp; width: 100%;</ins></td>
341                  </tr><tr>
342                          <th> </th><th>781</th><td class="r"><ins>&nbsp; &nbsp; &nbsp; &nbsp; font-size: 16px;</ins></td>
343                  </tr><tr>
344                          <th> </th><th>782</th><td class="r"><ins>&nbsp; &nbsp; &nbsp; &nbsp; font-weight: 300;</ins></td>
345                  </tr><tr>
346                          <th> </th><th>783</th><td class="r"><ins>&nbsp; &nbsp; &nbsp; &nbsp; line-height: 1.5;</ins></td>
347                  </tr><tr>
348                          <th> </th><th>784</th><td class="r"><ins>&nbsp; &nbsp; &nbsp; &nbsp; border-width: 1px;</ins></td>
349                  </tr><tr>
350                          <th> </th><th>785</th><td class="r"><ins>&nbsp; &nbsp; &nbsp; &nbsp; border-style: solid;</ins></td>
351                  </tr><tr>
352                          <th> </th><th>786</th><td class="r"><ins>&nbsp; &nbsp; &nbsp; &nbsp; border-color: #ddd;</ins></td>
353                  </tr><tr>
354                          <th> </th><th>787</th><td class="r"><ins>}</ins></td>
355                  </tr><tr>
356                          <th> </th><th>788</th><td class="r"><ins></ins></td>
357                  </tr><tr>
358                          <th> </th><th>789</th><td class="r"><ins></ins></td>
359                  </tr><tr>
360                          <th> </th><th>790</th><td class="r"><ins>.show-widget {</ins></td>
361                  </tr><tr>
362                          <th> </th><th>791</th><td class="r"><ins>&nbsp; &nbsp; display: block;</ins></td>
363                  </tr><tr>
364                          <th> </th><th>792</th><td class="r"><ins>}</ins></td>
365                  </tr><tr>
366                          <th> </th><th>793</th><td class="r"><ins></ins></td>
367                  </tr><tr>
368                          <th> </th><th>794</th><td class="r"><ins>.hide-widget {</ins></td>
369                  </tr><tr>
370                          <th> </th><th>795</th><td class="r"><ins>&nbsp; &nbsp; display: none;</ins></td>
371                  </tr><tr>
372                          <th> </th><th>796</th><td class="r"><ins>}</ins></td>
373                  </tr><tr class="last">
374                          <th> </th><th>797</th><td class="r"><ins></ins></td>
375                  </tr>
376            </tbody><tbody class="unmod">
377                  <tr>
378                          <th>776</th><th>798</th><td class="l"><span>/* =Media Queries</span></td>
379                  </tr><tr>
380                          <th>777</th><th>799</th><td class="l"><span>-------------------------------------------------------------- */</span></td>
381                  </tr><tr>
382                          <th>778</th><th>800</th><td class="l"><span></span></td>
383                  </tr>
384            </tbody>
385        </table>
386      </li>
387      <li class="entry">
388        <h2>
389          <a>src/wp-admin/widgets.php</a>
390        </h2>
391        <table class="trac-diff inline" summary="Differences" cellspacing="0">
392              <colgroup><col class="lineno" /><col class="lineno" /><col class="content" /></colgroup>
393              <thead>
394                <tr>
395                  <th title="File src/wp-admin/widgets.php (revision 45536)">
396                  </th>
397                  <th title="File src/wp-admin/widgets.php (working copy)">
398                  </th>
399                  <td><em></em> </td>
400                </tr>
401              </thead>
402            <tbody class="unmod">
403                  <tr>
404                          <th>426</th><th>426</th><td class="l"><span></span></td>
405                  </tr><tr>
406                          <th>427</th><th>427</th><td class="l"><span>&lt;div class="widget-liquid-left"&gt;</span></td>
407                  </tr><tr>
408                          <th>428</th><th>428</th><td class="l"><span>&lt;div id="widgets-left"&gt;</span></td>
409                  </tr>
410            </tbody><tbody class="add">
411                  <tr class="first">
412                          <th> </th><th>429</th><td class="r"><ins>&nbsp; &nbsp; &nbsp; &nbsp; &lt;div class="widgets-search"&gt;</ins></td>
413                  </tr><tr>
414                          <th> </th><th>430</th><td class="r"><ins>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="search" id="widgets-search-input" class="regular-text" placeholder="&lt;?php _e('Search widgets...'); ?&gt;"&gt;</ins></td>
415                  </tr><tr class="last">
416                          <th> </th><th>431</th><td class="r"><ins>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;</ins></td>
417                  </tr>
418            </tbody><tbody class="unmod">
419                  <tr>
420                          <th>429</th><th>432</th><td class="l"><span>&nbsp; &nbsp; &nbsp; &nbsp; &lt;div id="available-widgets" class="widgets-holder-wrap"&gt;</span></td>
421                  </tr><tr>
422                          <th>430</th><th>433</th><td class="l"><span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class="sidebar-name"&gt;</span></td>
423                  </tr><tr>
424                          <th>431</th><th>434</th><td class="l"><span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;button type="button" class="handlediv hide-if-no-js" aria-expanded="true"&gt;</span></td>
425                  </tr>
426            </tbody>
427        </table>
428      </li>
429  </ul>
430</div>
431
432        </div>
433    </div>
434    <div id="altlinks">
435    <a class="preferences-link" href="/prefs">Trac UI Preferences</a>
436      <h3>Download in other formats:</h3>
437      <ul>
438        <li class="last first">
439          <a rel="nofollow" href="/raw-attachment/ticket/47540/47540.patch">Original Format</a>
440        </li>
441      </ul>
442</div>
443    </div>
444<div id="wporg-footer">
445        <div class="wrapper">
446                <ul>
447                        <li><a href="https://wordpress.org/about/" title="An introduction to the WordPress project">About</a></li>
448                        <li><a href="https://wordpress.org/news/" title="News and Updates">Blog</a></li>
449                        <li><a href="https://wordpress.org/hosting/" title="Recommended web hosting providers">Hosting</a></li>
450                        <li><a href="https://wordpressfoundation.org/donate/" title="Donate to the WordPress Foundation">Donate</a></li>
451                </ul>
452                <ul>
453                        <li><a href="https://wordpress.org/support/" title="Forums, documentation, and other resources">Support</a></li>
454                        <li><a href="https://developer.wordpress.org" title="Resources for WordPress developers">Developers</a></li>
455                        <li><a href="https://make.wordpress.org/" title="Give back to WordPress through code, support, translation and more">Get Involved</a></li>
456                </ul>
457                <ul>
458                        <li><a href="https://wordpress.org/showcase/" title="Some of the best WordPress sites on the Web">Showcase</a></li>
459                        <li><a href="https://wordpress.org/plugins/" title="Add extra functionality to WordPress">Plugins</a></li>
460                        <li><a href="https://wordpress.org/themes/" title="Make your WordPress pretty">Themes</a></li>
461                </ul>
462                <ul>
463                        <li><a href="https://central.wordcamp.org/" title="Find a WordPress event near you">WordCamp</a></li>
464                        <li><a href="https://wordpress.tv/" title="Videos, tutorials, and WordCamp sessions">WordPress.TV</a></li>
465                        <li><a href="https://buddypress.org/" title="A set of plugins to transform your WordPress into a social network">BuddyPress</a></li>
466                        <li><a href="https://bbpress.org/" title="Fast, slick forums built on WordPress">bbPress</a></li>
467                </ul>
468                <ul>
469                        <li><a href="https://wordpress.com/?ref=wporg-footer" title="Hassle-free WordPress hosting">WordPress.com</a></li>
470                        <li><a href="https://ma.tt/" title="Co-founder of WordPress, an example of what WordPress can do">Matt</a></li>
471                        <li><a href="https://wordpress.org/about/privacy/" title="WordPress.org Privacy Policy">Privacy</a></li>
472                        <li><a href="https://publiccode.eu/" target="_blank">Public Code</a></li>
473                </ul>
474                <ul>
475                        <li><span class="dashicons dashicons-twitter"></span><a href="https://twitter.com/WordPress" title="Follow @WordPress on Twitter">@WordPress</a></li>
476                        <li><span class="dashicons dashicons-facebook"></span><a href="https://www.facebook.com/WordPress/" title="Like WordPress on Facebook">WordPress</a></li>
477                </ul>
478        </div>
479        <p class="cip cip-image">Code is Poetry</p>
480</div>
481        <script>
482        var wpTracCurrentUser = "anonymous";
483        </script>
484        <script src="https://s.w.org/style/js/navigation.min.js?20190128"></script>
485        <script src="https://s.w.org/style/trac/jquery.caret.min.js?ver=2015-02-01"></script>
486        <script src="https://s.w.org/style/trac/jquery.atwho.min.js?ver=1.0.1"></script>
487        <script src="https://s.w.org/style/trac/wp-trac.js?117"></script>
488                <script>
489                (function() {
490                        var settings = { endpoint: 'https://make.wordpress.org/core/', authenticated: 0 };
491                        wpTrac.notifications.init(settings);
492                })();
493                </script>
494<div id="report-popup"></div>
495<script>
496var wpTracContributorLabels = {
497        matt: 'Project Lead',
498        markjaquith: 'Lead Developer',
499        nacin: 'Lead Developer',
500        azaozz: 'Lead Developer',
501        dd32: 'Lead Developer',
502        helen: 'Lead Developer',
503        SergeyBiryukov: 'Core Committer',
504        johnbillion: 'Core Committer',
505        DrewAPicture: 'Core Committer',
506        pento: 'Core Committer',
507        boonebgorges: 'Core Committer',
508        jeremyfelt: 'Core Committer',
509        jorbin: 'Core Committer',
510        nbachiyski: 'Core Committer',
511        wonderboymusic: 'Core Committer',
512        westonruter: 'Core Committer',
513        iseulde: 'Core Committer',
514        afercia: 'Core Committer',
515        swissspidy: 'Core Committer',
516        rachelbaker: 'Core Committer',
517        mikeschroder: 'Core Committer',
518        joemcgill: 'Core Committer',
519        ocean90: 'Core Committer',
520        aaroncampbell: 'Core Committer',
521        josephscott: 'Core Committer',
522        mdawaffe: 'Core Committer',
523        kovshenin: 'Core Committer',
524        obenland: 'Core Committer',
525        rmccue: 'Core Committer',
526        michaelarestad: 'Core Committer',
527        joehoyle: 'Core Committer',
528        melchoyce: 'Core Committer',
529        ericlewis: 'Core Committer',
530        peterwilsoncc: 'Core Committer',
531        jnylen0: 'Core Committer',
532        adamsilverstein: 'Core Committer',
533        flixos90: 'Core Committer',
534        matveb: 'Core Committer',
535        joen: 'Core Committer',
536        kadamwhite: 'Core Committer',
537        iandunn: 'Core Committer',
538        karmatosed: 'Core Committer',
539        jrf: 'Core Committer',
540        allendav: 'Core Committer',
541        omarreiss: 'Core Committer',
542        allancole: 'Core Committer',
543        lonelyvegan: 'Core Committer',
544        antpb: 'Core Committer',
545        mcsf: 'Core Committer',
546        herregroen: 'Core Committer',
547        atimmer: 'Core Committer',
548        youknowriad: 'Core Committer',
549        gziolo: 'Core Committer',
550        jorgefilipecosta: 'Core Committer',
551        aduth: 'Core Committer',
552        bpayton: 'Core Committer',
553        noisysocks: 'Core Committer',
554        desrosj: 'Core Committer',
555        talldanwp: 'Core Committer',
556        johnjamesjacoby: 'Core Committer',
557        tellyworth: 'Core Committer',
558        xknown: 'Core Committer',
559        whyisjack: 'Core Committer',
560        iammattthomas: 'Core Committer',
561        mattmiklic: 'Core Committer',
562        lancewillett: 'Themes Committer',
563        iandstewart: 'Themes Committer',
564        davidakennedy: 'Themes Committer',
565        laurelfulford: 'Themes Committer',
566        ryan: 'Lead Tester',
567        designsimply: 'Lead Tester',
568        westi: 'Lead Developer',
569        koop: 'Core Committer',
570        duck_: 'Core Committer'
571};
572var wpTracAutoCompleteUsers = {
573        include: $.map( wpTracContributorLabels, function( v, k ) { return k } ),
574        exclude: [
575                'slackbot',
576                'ircbot',
577        ]
578};
579</script>
580</body>
581</html>