WordPress.org

Make WordPress Core

Ticket #38424: 38424-ver2.diff

File 38424-ver2.diff, 18.9 KB (added by SGr33n, 4 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      38424.diff on Ticket #38424 – 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/38424/38424.diff" type="text/x-patch; charset=utf-8" title="Original Format" />
27        <link rel="up" href="/ticket/38424" title="Ticket #38424" />
28        <link rel="start" href="/wiki" />
29        <link rel="stylesheet" href="https://s.w.org/style/trac/common/css/trac.css" type="text/css" /><link rel="stylesheet" href="https://s.w.org/style/trac/common/css/diff.css" type="text/css" /><link rel="stylesheet" href="https://s.w.org/style/trac/common/css/code.css" type="text/css" />
30        <link rel="shortcut icon" href="/chrome/common/trac.ico" type="image/x-icon" />
31        <link rel="icon" href="/chrome/common/trac.ico" type="image/x-icon" />
32      <link type="application/opensearchdescription+xml" rel="search" href="/search/opensearch" title="Search WordPress Trac" />
33        <script>
34                // <![CDATA[
35                window._wpemojiSettings = {"baseUrl":"https:\/\/s.w.org\/images\/core\/emoji\/2\/72x72\/","ext":".png","svgUrl":"https:\/\/s.w.org\/images\/core\/emoji\/2\/svg\/","svgExt":".svg","source":{"concatemoji":"https:\/\/s.w.org\/wp-includes\/js\/wp-emoji-release.min.js?ver=20160722"}};
36                !function(a,b,c){function d(a){var c,d,e,f=b.createElement("canvas"),g=f.getContext&&f.getContext("2d"),h=String.fromCharCode;if(!g||!g.fillText)return!1;switch(g.textBaseline="top",g.font="600 32px Arial",a){case"flag":return g.fillText(h(55356,56806,55356,56826),0,0),f.toDataURL().length>3e3;case"diversity":return g.fillText(h(55356,57221),0,0),c=g.getImageData(16,16,1,1).data,d=c[0]+","+c[1]+","+c[2]+","+c[3],g.fillText(h(55356,57221,55356,57343),0,0),c=g.getImageData(16,16,1,1).data,e=c[0]+","+c[1]+","+c[2]+","+c[3],d!==e;case"simple":return g.fillText(h(55357,56835),0,0),0!==g.getImageData(16,16,1,1).data[0];case"unicode8":return g.fillText(h(55356,57135),0,0),0!==g.getImageData(16,16,1,1).data[0];case"unicode9":return g.fillText(h(55358,56631),0,0),0!==g.getImageData(16,16,1,1).data[0]}return!1}function e(a){var c=b.createElement("script");c.src=a,c.type="text/javascript",b.getElementsByTagName("head")[0].appendChild(c)}var f,g,h,i;for(i=Array("simple","flag","unicode8","diversity","unicode9"),c.supports={everything:!0,everythingExceptFlag:!0},h=0;h<i.length;h++)c.supports[i[h]]=d(i[h]),c.supports.everything=c.supports.everything&&c.supports[i[h]],"flag"!==i[h]&&(c.supports.everythingExceptFlag=c.supports.everythingExceptFlag&&c.supports[i[h]]);c.supports.everythingExceptFlag=c.supports.everythingExceptFlag&&!c.supports.flag,c.DOMReady=!1,c.readyCallback=function(){c.DOMReady=!0},c.supports.everything||(g=function(){c.readyCallback()},b.addEventListener?(b.addEventListener("DOMContentLoaded",g,!1),a.addEventListener("load",g,!1)):(a.attachEvent("onload",g),b.attachEvent("onreadystatechange",function(){"complete"===b.readyState&&c.readyCallback()})),f=c.source||{},f.concatemoji?e(f.concatemoji):f.wpemoji&&f.twemoji&&(e(f.twemoji),e(f.wpemoji)))}(window,document,window._wpemojiSettings);
37                // ]]>
38        </script>
39        <style>
40                img.emoji {
41                        display: inline !important;
42                        border: none !important;
43                        box-shadow: none !important;
44                        height: 1em !important;
45                        width: 1em !important;
46                        margin: 0 .07em !important;
47                        vertical-align: -0.1em !important;
48                        background: none !important;
49                        padding: 0 !important;
50                }
51        </style>
52        <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" />
53        <link rel="stylesheet" href="https://s.w.org/style/wp4.css?39" />
54        <!--[if lte IE 8]>
55        <style type="text/css">
56        @import url("https://s.w.org/style/ie.css?1");
57        </style>
58        <![endif]-->
59        <meta name="viewport" content="width=device-width" />
60        <link rel="stylesheet" href="https://s.w.org/wp-includes/css/dashicons.min.css?20150710" type="text/css" />
61        <link rel="stylesheet" type="text/css" href="https://s.w.org/style/trac/wp-trac.css?72" />
62        <script type="text/javascript" charset="utf-8" src="https://s.w.org/style/trac/common/js/jquery.js"></script>
63      <script type="text/javascript" charset="utf-8" src="https://s.w.org/style/trac/common/js/babel.js"></script>
64      <script type="text/javascript" charset="utf-8" src="https://s.w.org/style/trac/common/js/trac.js"></script>
65      <script type="text/javascript" charset="utf-8" src="https://s.w.org/style/trac/common/js/search.js"></script>
66      <script type="text/javascript" charset="utf-8" src="https://s.w.org/style/trac/common/js/diff.js"></script>
67      <script type="text/javascript" src="https://s.w.org/style/trac/common/js/folding.js"></script>
68      <script type="text/javascript">
69        jQuery(document).ready(function($) {
70          $('#preview table.code').enableCollapsibleColumns($('#preview table.code thead th.content'));
71        });
72      </script>
73<link rel="stylesheet" href="https://s.w.org/wp-content/plugins/trac-notifications/make-core.css?ver=3" />
74</head>
75  <body id="wordpress-org" class="core trac wporg-make make-core">
76<div id="wporg-header">
77    <div class="wrapper">
78        <a id="mobile-menu-button" class="" href="#" onclick="toggleMenu();"></a>
79        <h1><a href="https://wordpress.org">WordPress.org</a></h1>
80        <div id="head-search">
81            <form action="https://wordpress.org/search/do-search.php" method="get">
82                <label for="global-search" class="screen-reader-text">Search WordPress.org for:</label>
83                                <input id="global-search" class="text" name="search" type="text" value="" maxlength="150" placeholder="Search WordPress.org" />
84                                <input type="submit" class="button" value="" />
85            </form>
86        </div>
87        <div style="clear:both"></div>
88        <ul id="wporg-header-menu">
89            <li><a href="https://wordpress.org/showcase/" title="See some of the sites built on WordPress.">Showcase</a></li>
90            <li><a href="https://wordpress.org/themes/" title="Find just the right look for your website.">Themes</a></li>
91            <li><a href="https://wordpress.org/plugins/" title="Plugins can extend WordPress to do almost anything you can imagine.">Plugins</a>
92                <div class="uparrow"></div>
93            </li>
94            <li><a href="https://wordpress.org/mobile/" title="Take your website on the go!">Mobile</a></li>
95            <li><a href="https://wordpress.org/support/" title="Forums, documentation, help.">Support</a>
96                <ul class="nav-submenu">
97                    <li><a href="https://wordpress.org/support/" title="Support and discussion forums.">Forums</a></li>
98                    <li><a href="https://codex.wordpress.org/Main_Page" title="Documentation, tutorials, best practices.">Documentation</a></li>
99                </ul>
100                <div class="uparrow"></div>
101            </li>
102            <li><a href="https://make.wordpress.org/" title="Contribute your knowledge." class="current">Get Involved</a></li>
103            <li><a href="https://wordpress.org/about/" title="About the WordPress Organization, and where we're going.">About</a></li>
104            <li><a href="https://wordpress.org/news/" title="Come here for the latest scoop.">Blog</a></li>
105            <li><a href="https://wordpress.org/hosting/" title="Find a home for your blog.">Hosting</a></li>
106            <li id="download" class="button download-button"><a href="https://wordpress.org/download/" title="Get it. Got it? Good.">Download WordPress</a></li>
107        </ul>
108        <div style="clear:both"></div>
109    </div>
110</div>
111        <div id="headline">
112                <div class="wrapper">
113                        <h2><a href="https://make.wordpress.org/core/">Make WordPress Core</a></h2>
114                        <div class="menu-container"><ul class="menu">
115                                <li><a href="https://make.wordpress.org/core/">Blog</a></li>
116                                <li><a href="https://make.wordpress.org/core/handbook/">Handbook</a></li>
117                                <li><a class="open-ticket-report" href="https://make.wordpress.org/core/reports/">Tickets</a></li>
118                                <li><a href="https://make.wordpress.org/core/components/">Components</a></li>
119                                <li class="icon browser"><a title="Browse Source" href="https://core.trac.wordpress.org/browser">Browse Source</a></li>
120                                <li class="icon timeline"><a title="Trac Timeline" href="https://core.trac.wordpress.org/timeline">Trac Timeline</a></li>
121                                <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>
122                        </ul></div>
123                </div>
124        </div>
125    <div id="banner">
126      <form id="search" action="/search" method="get">
127        <div>
128          <label for="proj-search">Search:</label>
129          <input type="text" id="proj-search" name="q" size="18" value="" />
130          <input type="submit" value="Search" />
131        </div>
132      </form>
133      <div id="metanav" class="nav">
134    <ul>
135      <li class="first"><a href="/login">Login</a></li><li class="last"><a href="https://make.wordpress.org/core/notifications/">Notifications</a></li>
136    </ul>
137  </div>
138    </div>
139    <div id="mainnav" class="nav">
140  </div>
141    <div id="main">
142      <div id="ctxtnav" class="nav">
143        <h2>Context Navigation</h2>
144        <ul>
145          <li class="last first"><a href="/ticket/38424">Back to Ticket #38424</a></li>
146        </ul>
147        <hr />
148      </div>
149    <div id="content" class="attachment">
150        <h1><a href="/ticket/38424">Ticket #38424</a>: 38424.diff</h1>
151        <table id="info" summary="Description">
152          <tbody>
153            <tr>
154              <th scope="col">File 38424.diff,
155                <span title="534 bytes">534 bytes</span>
156                (added by boonebgorges, <a class="timeline" href="/timeline?from=2016-10-26T03%3A13%3A08Z&amp;precision=second" title="See timeline at 10/26/16 03:13:08">5 hours ago</a>)</th>
157            </tr>
158            <tr>
159              <td class="message searchable">
160               
161              </td>
162            </tr>
163          </tbody>
164        </table>
165        <div id="preview" class="searchable">
166         
167  <div class="diff">
168  <ul class="entries">
169      <li class="entry">
170        <h2>
171          <a>src/wp-admin/js/tags.js</a>
172        </h2>
173        <pre>diff --git src/wp-admin/js/tags.js src/wp-admin/js/tags.js
174index 333a2eb..703b5bd 100644</pre>
175        <table class="trac-diff inline" summary="Differences" cellspacing="0">
176              <colgroup><col class="lineno" /><col class="lineno" /><col class="content" /></colgroup>
177              <thead>
178                <tr>
179                  <th title="File src/wp-admin/js/tags.js">
180                  </th>
181                  <th title="File src/wp-admin/js/tags.js">
182                  </th>
183                  <td><em> jQuery(document).ready(function($) {</em> </td>
184                </tr>
185              </thead>
186            <tbody class="unmod">
187                  <tr>
188                          <th>63</th><th>63</th><td class="l"><span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; form.find( 'select#parent option:selected' ).after( '&lt;option value="' + term.term_id + '"&gt;' + indent + term.name + '&lt;/option&gt;' );</span> </td>
189                  </tr><tr>
190                          <th>64</th><th>64</th><td class="l"><span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</span> </td>
191                  </tr><tr>
192                          <th>65</th><th>65</th><td class="l"><span></span> </td>
193                  </tr>
194            </tbody><tbody class="mod">
195                      <tr class="first">
196                        <th>66</th><th> </th><td class="l"><span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $('input[type="text"]:visible, <del></del>textarea:visible', form).val('');</span> </td>
197                      </tr>
198                      <tr class="last">
199                        <th> </th><th>66</th><td class="r"><span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $('input[type="text"]:visible, <ins>input[type="number"]:visible, <ins>input[type="url"]:visible, <ins>input[type="email"]:visible, <ins>input[type="tel"]:visible, </ins>textarea:visible', form).val('');</span> </td>
200                      </tr>
201            </tbody><tbody class="unmod">
202                  <tr>
203                          <th>67</th><th>67</th><td class="l"><span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });</span> </td>
204                  </tr><tr>
205                          <th>68</th><th>68</th><td class="l"><span></span> </td>
206                  </tr><tr>
207                          <th>69</th><th>69</th><td class="l"><span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;</span> </td>
208                  </tr>
209            </tbody>
210        </table>
211      </li>
212  </ul>
213</div>
214
215        </div>
216    </div>
217    <div id="altlinks">
218    <a class="preferences-link" href="/prefs">Trac UI Preferences</a>
219      <h3>Download in other formats:</h3>
220      <ul>
221        <li class="last first">
222          <a rel="nofollow" href="/raw-attachment/ticket/38424/38424.diff">Original Format</a>
223        </li>
224      </ul>
225</div>
226    </div>
227<div id="wporg-footer">
228        <div class="wrapper">
229                <ul>
230                        <li><a href="https://wordpress.org/about/" title="An introduction to the WordPress project">About</a></li>
231                        <li><a href="https://wordpress.org/news/" title="News and Updates">Blog</a></li>
232                        <li><a href="https://wordpress.org/hosting/" title="Recommended web hosting providers">Hosting</a></li>
233                        <li><a href="http://jobs.wordpress.net/" title="Find or post WordPress jobs">Jobs</a></li>
234                </ul>
235                <ul>
236                        <li><a href="https://wordpress.org/support/" title="Forums, documentation, and other resources">Support</a></li>
237                        <li><a href="https://developer.wordpress.org" title="Resources for WordPress developers">Developers</a></li>
238                        <li><a href="https://make.wordpress.org/" title="Give back to WordPress through code, support, translation and more">Get Involved</a></li>
239                        <li><a href="https://learn.wordpress.org/" title="Workshops and training materials">Learn</a></li>
240                </ul>
241                <ul>
242                        <li><a href="https://wordpress.org/showcase/" title="Some of the best WordPress sites on the Web">Showcase</a></li>
243                        <li><a href="https://wordpress.org/plugins/" title="Add extra functionality to WordPress">Plugins</a></li>
244                        <li><a href="https://wordpress.org/themes/" title="Make your WordPress pretty">Themes</a></li>
245                        <li><a href="https://wordpress.org/ideas/" title="Share your ideas for improving WordPress">Ideas</a></li>
246                </ul>
247                <ul>
248                        <li><a href="https://central.wordcamp.org/" title="Find a WordPress event near you">WordCamp</a></li>
249                        <li><a href="https://wordpress.tv/" title="Videos, tutorials, and WordCamp sessions">WordPress.TV</a></li>
250                        <li><a href="https://buddypress.org/" title="A set of plugins to transform your WordPress into a social network">BuddyPress</a></li>
251                        <li><a href="https://bbpress.org/" title="Fast, slick forums built on WordPress">bbPress</a></li>
252                </ul>
253                <ul>
254                        <li><a href="https://wordpress.com/?ref=wporg-footer" title="Hassle-free WordPress hosting">WordPress.com</a></li>
255                        <li><a href="https://ma.tt/" title="Co-founder of WordPress, an example of what WordPress can do">Matt</a></li>
256                        <li><a href="https://wordpress.org/about/privacy/" title="WordPress.org Privacy Policy">Privacy</a></li>
257                        <li><a href="https://wordpress.org/about/license/" title="WordPress is open source software">License / GPLv2</a></li>
258                </ul>
259        </div>
260        <h6 class="aligncenter">Code is Poetry</h6>
261</div>
262<script type="text/javascript">
263  var _qevents = _qevents || [];
264  (function() {
265   var elem = document.createElement('script');
266   elem.src = (document.location.protocol == "https:" ? "https://secure" : "http://edge")
267               + ".quantserve.com/quant.js";
268   elem.async = true;
269   elem.type = "text/javascript";
270   var scpt = document.getElementsByTagName('script')[0];
271   scpt.parentNode.insertBefore(elem, scpt);
272  })();
273</script>
274<script type="text/javascript">_qevents.push( { qacct:"p-18-mFEk4J448M"} );</script>
275<noscript><img src="https://pixel.quantserve.com/pixel/p-18-mFEk4J448M.gif" style="display: none;" border="0" height="1" width="1" alt="" /></noscript>
276        <script>
277        var wpTracCurrentUser = "anonymous";
278        </script>
279        <script src="https://s.w.org/style/trac/jquery.caret.min.js?ver=2015-02-01"></script>
280        <script src="https://s.w.org/style/trac/jquery.atwho.min.js?ver=1.0.1"></script>
281        <script src="https://s.w.org/style/trac/wp-trac.js?72"></script>
282                <script type="text/javascript">
283                var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
284                document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
285                </script>
286                <script type="text/javascript">
287                try {
288                var pageTracker = _gat._getTracker("UA-52447-27");
289                pageTracker._trackPageview();
290                } catch(err) {}</script>
291                <script>
292                (function() {
293                        var settings = { endpoint: 'https://make.wordpress.org/core/', authenticated: 0 };
294                        wpTrac.notifications.init(settings);
295                })();
296                </script>
297<div id="report-popup"></div>
298<script>
299var wpTracContributorLabels = {
300        matt: 'Project Lead',
301        markjaquith: 'Lead Developer',
302        nacin: 'Lead Developer',
303        azaozz: 'Lead Developer',
304        dd32: 'Lead Developer',
305        SergeyBiryukov: 'Core Committer',
306        johnbillion: 'Core Committer',
307        DrewAPicture: 'Core Committer',
308        pento: 'Core Committer',
309        boonebgorges: 'Core Committer',
310        jeremyfelt: 'Core Committer',
311        jorbin: 'Core Committer',
312        nbachiyski: 'Core Committer',
313        wonderboymusic: 'Core Committer',
314        westonruter: 'Core Committer',
315        iseulde: 'Core Committer',
316        afercia: 'Core Committer',
317        kovshenin: 'Core Committer',
318        obenland: 'Core Committer',
319        rmccue: 'Core Committer',
320        michaelarestad: 'Core Committer',
321        swissspidy: 'Core Committer',
322        rachelbaker: 'Core Committer',
323        joehoyle: 'Core Committer',
324        melchoyce: 'Core Committer',
325        ericlewis: 'Core Committer',
326        joemcgill: 'Core Committer',
327        peterwilsoncc: 'Core Committer',
328        mikeschroder: 'Core Committer',
329        helen: '4.7 Release Lead',
330        ocean90: '4.6 Release Lead',
331        iammattthomas: 'Core Committer',
332        lancewillett: 'Themes Committer',
333        iandstewart: 'Themes Committer',
334        karmatosed: 'Themes Committer',
335        davidakennedy: 'Themes Committer',
336        ryan: 'Lead Tester',
337        designsimply: 'Lead Tester',
338        westi: 'Lead Developer',
339        koop: 'Core Committer',
340        duck_: 'Core Committer'
341};
342var wpTracAutoCompleteUsers = {
343        include: $.map( wpTracContributorLabels, function( v, k ) { return k } ),
344        exclude: [
345                'slackbot',
346                'ircbot',
347        ]
348};
349</script>
350</body>
351</html>