mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-28 22:40:00 +01:00
Updates package dependencies to more modern versions, also adds .nvmrc and package-lock.json as followups to [43683] and [43571]. See #44600. Fixes #45064. Built from https://develop.svn.wordpress.org/branches/5.0@43684 git-svn-id: http://core.svn.wordpress.org/branches/5.0@43513 1a063a9b-81f0-0310-95a4-ce76da25c4cd
1 line
696 B
JavaScript
1 line
696 B
JavaScript
!function(d){var s=window.wpApiSettings;function n(e){return e=n.buildAjaxOptions(e),n.transport(e)}n.buildAjaxOptions=function(e){var n,t,a,o,p,r=e.url,i=e.path;if("string"==typeof e.namespace&&"string"==typeof e.endpoint&&(n=e.namespace.replace(/^\/|\/$/g,""),i=(t=e.endpoint.replace(/^\//,""))?n+"/"+t:n),"string"==typeof i&&(r=s.root+i.replace(/^\//,"")),o=!(e.data&&e.data._wpnonce),a=e.headers||{},o)for(p in a)if(a.hasOwnProperty(p)&&"x-wp-nonce"===p.toLowerCase()){o=!1;break}return o&&(a=d.extend({"X-WP-Nonce":s.nonce},a)),delete(e=d.extend({},e,{headers:a,url:r})).path,delete e.namespace,delete e.endpoint,e},n.transport=d.ajax,window.wp=window.wp||{},window.wp.apiRequest=n}(jQuery); |