CoreFiles by mySites.guru
api-request.min.js1 lines, 771 bytes, from wordpress-5.2.zip
Raw History Compare with 5.1.28
md5
b1ae1aa42eaf4df3fdc59777f5ec7437
sha1
4f56bddf6169957b35d234265fddfd2177cb6739
sha256
b5fb36601292e67e640378a8fb54effe16945559858910d4b6b771a2666a2e00
!function(a){function b(a){return a=b.buildAjaxOptions(a),b.transport(a)}var c=window.wpApiSettings;b.buildAjaxOptions=function(b){var d,e,f,g,h,i,j=b.url,k=b.path;if("string"==typeof b.namespace&&"string"==typeof b.endpoint&&(d=b.namespace.replace(/^\/|\/$/g,""),e=b.endpoint.replace(/^\//,""),k=e?d+"/"+e:d),"string"==typeof k&&(f=c.root,k=k.replace(/^\//,""),"string"==typeof f&&-1!==f.indexOf("?")&&(k=k.replace("?","&")),j=f+k),h=!(b.data&&b.data._wpnonce),g=b.headers||{},h)for(i in g)if(g.hasOwnProperty(i)&&"x-wp-nonce"===i.toLowerCase()){h=!1;break}return h&&(g=a.extend({"X-WP-Nonce":c.nonce},g)),b=a.extend({},b,{headers:g,url:j}),delete b.path,delete b.namespace,delete b.endpoint,b},b.transport=a.ajax,window.wp=window.wp||{},window.wp.apiRequest=b}(jQuery);

The same content is in 59 releases, WordPress 5.0-beta1 to 5.3-beta2. See them all, or every version of this file.