mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-05 10:22:23 +01:00
49007e52bc
Patches occasionally come in on generated files. We should be kind to new contributors and give them a hint that these files are auto-generated. This is a follow-up to [41271], which added the banner to minified CSS files. Fixes #48424. See #30666. Built from https://develop.svn.wordpress.org/trunk@46589 git-svn-id: http://core.svn.wordpress.org/trunk@46386 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2 lines
805 B
JavaScript
2 lines
805 B
JavaScript
/*! This file is auto-generated */
|
|
!function(s){var w=window.wpApiSettings;function n(e){return e=n.buildAjaxOptions(e),n.transport(e)}n.buildAjaxOptions=function(e){var n,t,a,p,r,o,i=e.url,d=e.path;if("string"==typeof e.namespace&&"string"==typeof e.endpoint&&(n=e.namespace.replace(/^\/|\/$/g,""),d=(t=e.endpoint.replace(/^\//,""))?n+"/"+t:n),"string"==typeof d&&(a=w.root,d=d.replace(/^\//,""),"string"==typeof a&&-1!==a.indexOf("?")&&(d=d.replace("?","&")),i=a+d),r=!(e.data&&e.data._wpnonce),p=e.headers||{},r)for(o in p)if(p.hasOwnProperty(o)&&"x-wp-nonce"===o.toLowerCase()){r=!1;break}return r&&(p=s.extend({"X-WP-Nonce":w.nonce},p)),delete(e=s.extend({},e,{headers:p,url:i})).path,delete e.namespace,delete e.endpoint,e},n.transport=s.ajax,window.wp=window.wp||{},window.wp.apiRequest=n}(jQuery); |