<!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>[13644] sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/locale-switcher: Learn: Sync with git WordPress/learn@dfdc48a</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 { white-space: pre-line; 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="http://meta.trac.wordpress.org/changeset/13644">13644</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"http://meta.trac.wordpress.org/changeset/13644","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>adamwood</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2024-05-01 23:23:26 +0000 (Wed, 01 May 2024)</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'>Learn: Sync with git WordPress/learn@dfdc48a</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentmupluginspublocaleswitcherbuildindexassetphp">sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/locale-switcher/build/index.asset.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentmupluginspublocaleswitcherbuildindexjs">sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/locale-switcher/build/index.js</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentmupluginspublocaleswitcherbuildstyleindexcss">sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/locale-switcher/build/style-index.css</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentmupluginspublocaleswitcherpackagejson">sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/locale-switcher/package.json</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentmupluginspublocaleswitchersrcindexjs">sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/locale-switcher/src/index.js</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentmupluginspublocaleswitchersrcstylescss">sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/locale-switcher/src/style.scss</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentmupluginspublocaleswitcherbuildindexassetphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/locale-switcher/build/index.asset.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/locale-switcher/build/index.asset.php 2024-05-01 04:22:16 UTC (rev 13643)
+++ sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/locale-switcher/build/index.asset.php 2024-05-01 23:23:26 UTC (rev 13644)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1 +1 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php return array('dependencies' => array('wp-components', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'c8505bd3f3f0056808121052a9fbcc6e');
</del><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of file
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php return array('dependencies' => array('react', 'wp-components', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => '2d1c892e1f993afe9f08');
</ins></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentmupluginspublocaleswitcherbuildindexjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/locale-switcher/build/index.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/locale-switcher/build/index.js 2024-05-01 04:22:16 UTC (rev 13643)
+++ sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/locale-switcher/build/index.js 2024-05-01 23:23:26 UTC (rev 13644)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1 +1 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{11:function(t,e,n){}}]),function(t){function e(e){for(var r,u,c=e[0],a=e[1],l=e[2],p=0,s=[];p<c.length;p++)u=c[p],Object.prototype.hasOwnProperty.call(o,u)&&o[u]&&s.push(o[u][0]),o[u]=0;for(r in a)Object.prototype.hasOwnProperty.call(a,r)&&(t[r]=a[r]);for(f&&f(e);s.length;)s.shift()();return i.push.apply(i,l||[]),n()}function n(){for(var t,e=0;e<i.length;e++){for(var n=i[e],r=!0,c=1;c<n.length;c++){var a=n[c];0!==o[a]&&(r=!1)}r&&(i.splice(e--,1),t=u(u.s=n[0]))}return t}var r={},o={0:0},i=[];function u(e){if(r[e])return r[e].exports;var n=r[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,u),n.l=!0,n.exports}u.m=t,u.c=r,u.d=function(t,e,n){u.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},u.r=function(t){"undefined"!=typeof Symbol&&Sy
mbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},u.t=function(t,e){if(1&e&&(t=u(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(u.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)u.d(n,r,function(e){return t[e]}.bind(null,r));return n},u.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return u.d(e,"a",e),e},u.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},u.p="";var c=window.webpackJsonp=window.webpackJsonp||[],a=c.push.bind(c);c.push=e,c=c.slice();for(var l=0;l<c.length;l++)e(c[l]);var f=a;i.push([5,1]),n()}([function(t,e){!function(){t.exports=this.wp.element}()},function(t,e,n){var r=n(6),o=n(7),i=n(
8),u=n(10);t.exports=function(t,e){return r(t)||o(t,e)||i(t,e)||u()}},function(t,e){!function(){t.exports=this.wp.components}()},function(t,e){!function(){t.exports=this.wp.i18n}()},function(t,e){!function(){t.exports=this.wp.url}()},function(t,e,n){"use strict";n.r(e);var r=n(1),o=n.n(r),i=n(0),u=n(2),c=n(3),a=n(4),l=(n(11),window.wporgLocaleSwitcherConfig||{}),f=function(t){var e=t.externalButton,n=l.initialValue,r=l.options,f=Object(i.useState)(!1),p=o()(f,2),s=p[0],d=p[1],b=Object(i.useState)(!1),y=o()(b,2),w=y[0],h=y[1];return e.addEventListener("click",(function(t){t.preventDefault(),d(!0)})),Object(i.createElement)(i.Fragment,null,s&&Object(i.createElement)(u.Modal,{closeButtonLabel:Object(c.__)("Cancel","wporg"),onRequestClose:function(){return d(!1)},title:Object(c.__)("Change language","wporg")},Object(i.createElement)(u.ComboboxControl,{onChange:function(t){h(t),function(t){var e=window.location.href;wind
ow.location=Object(a.addQueryArgs)(e,{locale:t})}(t)},onFilterValueChange:function(){},options:r,value:w||n})))};document.addEventListener("DOMContentLoaded",(function(){var t=document.getElementById("wporg-locale-switcher-container"),e={externalButton:document.getElementById("wp-admin-bar-locale-switcher")};Object(i.render)(Object(i.createElement)(f,e),t)}))},function(t,e){t.exports=function(t){if(Array.isArray(t))return t}},function(t,e){t.exports=function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}},function(t,e,n){var r=n(9);t.exports=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&
;&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}},function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}}]);
</del><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of file
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+(()=>{"use strict";var e,t={918:()=>{const e=window.React,t=window.wp.components,n=window.wp.element,o=window.wp.i18n,r=window.wp.url,a=window.wporgLocaleSwitcherConfig||{},l=l=>{const{externalButton:i}=l,{initialValue:c,options:w}=a,[s,d]=(0,n.useState)(!1),[u,p]=(0,n.useState)(!1);return i.addEventListener("click",(e=>{e.preventDefault(),d(!0)})),(0,n.createElement)(e.Fragment,null,s&&(0,n.createElement)(t.Modal,{closeButtonLabel:(0,o.__)("Cancel","wporg"),onRequestClose:()=>d(!1),title:(0,o.__)("Change language","wporg")},(0,n.createElement)(t.ComboboxControl,{onChange:e=>{p(e),(e=>{const t=window.location.href;window.location=(0,r.addQueryArgs)(t,{locale:e})})(e)},onFilterValueChange:()=>{},options:w,value:u||c})))};document.addEventListener("DOMContentLoaded",(()=>{const e=docume
nt.getElementById("wporg-locale-switcher-container"),t={externalButton:document.getElementById("wp-admin-bar-locale-switcher")};(0,n.render)((0,n.createElement)(l,t),e)}))}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,o),a.exports}o.m=t,e=[],o.O=(t,n,r,a)=>{if(!n){var l=1/0;for(s=0;s<e.length;s++){for(var[n,r,a]=e[s],i=!0,c=0;c<n.length;c++)(!1&a||l>=a)&&Object.keys(o.O).every((e=>o.O[e](n[c])))?n.splice(c--,1):(i=!1,a<l&&(l=a));if(i){e.splice(s--,1);var w=r();void 0!==w&&(t=w)}}return t}a=a||0;for(var s=e.length;s>0&&e[s-1][2]>a;s--)e[s]=e[s-1];e[s]=[n,r,a]},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={57:0,350:0};o.O.j=t=>0===e[t];var t=(t,n)=>{var r,a,[l,i,c]=n,w=0;if(l.some((t=>0!==e[t]))){for(r in i)o.o(i,r)&&(o.m[r]=i[r]);if(c)var s=c(o)}for(t&&t(n);w<l.length;w++)a=l[w],o.o(e,a)&
amp;&e[a]&&e[a][0](),e[a]=0;return o.O(s)},n=globalThis.webpackChunkwporg_locale_switcher=globalThis.webpackChunkwporg_locale_switcher||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var r=o.O(void 0,[350],(()=>o(918)));r=o.O(r)})();
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of file
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentmupluginspublocaleswitcherbuildstyleindexcss"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/locale-switcher/build/style-index.css</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/locale-switcher/build/style-index.css 2024-05-01 04:22:16 UTC (rev 13643)
+++ sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/locale-switcher/build/style-index.css 2024-05-01 23:23:26 UTC (rev 13644)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,2 +1 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-#wpadminbar #wp-admin-bar-locale-switcher>.ab-item{cursor:pointer}#wpadminbar #wp-admin-bar-locale-switcher>.ab-item::before{content:"\f326";top:2px}
-
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+#wpadminbar #wp-admin-bar-locale-switcher>.ab-item{cursor:pointer}#wpadminbar #wp-admin-bar-locale-switcher>.ab-item:before{content:"";top:2px}
</ins></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentmupluginspublocaleswitcherpackagejson"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/locale-switcher/package.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/locale-switcher/package.json 2024-05-01 04:22:16 UTC (rev 13643)
+++ sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/locale-switcher/package.json 2024-05-01 23:23:26 UTC (rev 13644)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -20,6 +20,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> "@wordpress/url": "^3.21.0"
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px"> "devDependencies": {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "@wordpress/scripts": "^19.2.2"
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "@wordpress/scripts": "27.2.0"
+ },
+ "stylelint": {
+ "extends": "../../../../.stylelintrc"
</ins><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="sitestrunkwordpressorgpublic_htmlwpcontentmupluginspublocaleswitchersrcindexjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/locale-switcher/src/index.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/locale-switcher/src/index.js 2024-05-01 04:22:16 UTC (rev 13643)
+++ sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/locale-switcher/src/index.js 2024-05-01 23:23:26 UTC (rev 13644)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -56,12 +56,8 @@
</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"> const initLocaleSwitcher = () => {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- const container = document.getElementById(
- 'wporg-locale-switcher-container'
- );
- const externalButton = document.getElementById(
- 'wp-admin-bar-locale-switcher'
- );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ const container = document.getElementById( 'wporg-locale-switcher-container' );
+ const externalButton = document.getElementById( 'wp-admin-bar-locale-switcher' );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> const props = {
</span><span class="cx" style="display: block; padding: 0 10px"> externalButton,
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentmupluginspublocaleswitchersrcstylescss"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/locale-switcher/src/style.scss</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/locale-switcher/src/style.scss 2024-05-01 04:22:16 UTC (rev 13643)
+++ sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/locale-switcher/src/style.scss 2024-05-01 23:23:26 UTC (rev 13644)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,5 +1,4 @@
</span><span class="cx" style="display: block; padding: 0 10px"> #wpadminbar #wp-admin-bar-locale-switcher {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-
</del><span class="cx" style="display: block; padding: 0 10px"> > .ab-item {
</span><span class="cx" style="display: block; padding: 0 10px"> cursor: pointer;
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre>
</div>
</div>
</body>
</html>