PageSourceSearch

https://getgoldenvisa.com/wp-content/cache/min/1/wp-includes/js/api-request.js?ver=1790922521

js getgoldenvisa.com collected 2026-10-02 07:48:59 UTC 1,719 bytes, 10 lines download raw bytes

1(function($){var wpApiSettings=window.wpApiSettings;function apiRequest(options){options=apiRequest.buildAjaxOptions(options);return apiRequest.transport(options)}
2apiRequest.buildAjaxOptions=function(options){var url=options.url;var path=options.path;var method=options.method;var namespaceTrimmed,endpointTrimmed,apiRoot;var headers,addNonceHeader,addAcceptHeader,headerName;if(typeof options.namespace==='string'&&typeof options.endpoint==='string'){namespaceTrimmed=options.namespace.replace(/^\/|\/$/g,'');endpointTrimmed=options.endpoint.replace(/^\//,'');if(endpointTrimmed){path=namespaceTrimmed+'/'+endpointTrimmed}else{path=namespaceTrimmed}}
3if(typeof path==='string'){apiRoot=wpApiSettings.root;path=path.replace(/^\//,'');if('string'===typeof apiRoot&&-1!==apiRoot.indexOf('?')){path=path.replace('?','&')}
4url=apiRoot+path}
5addNonceHeader=!(options.data&&options.data._wpnonce);addAcceptHeader=!0;headers=options.headers||{};for(headerName in headers){if(!headers.hasOwnProperty(headerName)){continue}
6switch(headerName.toLowerCase()){case 'x-wp-nonce':addNonceHeader=!1;break;case 'accept':addAcceptHeader=!1;break}}
7if(addNonceHeader){headers=$.extend({'X-WP-Nonce':wpApiSettings.nonce},headers)}
8if(addAcceptHeader){headers=$.extend({'Accept':'application/json, */*;q=0.1'},headers)}
9if(typeof method==='string'){method=method.toUpperCase();if('PUT'===method||'DELETE'===method){headers=$.extend({'X-HTTP-Method-Override':method},headers);method='POST'}}
10options=$.extend({},options,{headers:headers,url:url,method:method});delete options.path;delete options.namespace;delete options.endpoint;return options};apiRequest.transport=$.ajax;window.wp=window.wp||{};window.wp.apiRequest=apiRequest})(jQuery)

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.