Ghost Exploiter Team Official
/
home2
/
warripp1
/
public_html
/
dev-windsor
/
wp-admin
/
js
/
Nama File / Folder
Size
Action
widgets
--
NONE
auth-app.js
5.66KB
Hapus
Edit
Rename
code-editor.min.js
3.012KB
Hapus
Edit
Rename
color-picker.js
9.539KB
Hapus
Edit
Rename
color-picker.min.js
3.408KB
Hapus
Edit
Rename
comment.min.js
1.284KB
Hapus
Edit
Rename
common.min.js
19.567KB
Hapus
Edit
Rename
custom-background.js
3.354KB
Hapus
Edit
Rename
custom-background.min.js
1.178KB
Hapus
Edit
Rename
custom-header.js
1.976KB
Hapus
Edit
Rename
customize-controls.js
284.73KB
Hapus
Edit
Rename
customize-controls.min.js
108.45KB
Hapus
Edit
Rename
customize-nav-menus.js
105.908KB
Hapus
Edit
Rename
customize-widgets.js
69.986KB
Hapus
Edit
Rename
editor-expand.js
41.608KB
Hapus
Edit
Rename
editor.js
44.254KB
Hapus
Edit
Rename
editor.min.js
12.901KB
Hapus
Edit
Rename
farbtastic.js
7.509KB
Hapus
Edit
Rename
inline-edit-post.js
16.139KB
Hapus
Edit
Rename
inline-edit-post.min.js
7.237KB
Hapus
Edit
Rename
inline-edit-tax.js
7.614KB
Hapus
Edit
Rename
inline-edit-tax.min.js
2.927KB
Hapus
Edit
Rename
iris.min.js
23.089KB
Hapus
Edit
Rename
link.js
3.894KB
Hapus
Edit
Rename
media-gallery.min.js
0.597KB
Hapus
Edit
Rename
media-upload.js
3.384KB
Hapus
Edit
Rename
media-upload.min.js
1.125KB
Hapus
Edit
Rename
media.js
5.209KB
Hapus
Edit
Rename
nav-menu.js
49.409KB
Hapus
Edit
Rename
password-strength-meter.js
4.137KB
Hapus
Edit
Rename
password-strength-meter.min.js
1.097KB
Hapus
Edit
Rename
plugin-install.js
6.92KB
Hapus
Edit
Rename
plugin-install.min.js
2.347KB
Hapus
Edit
Rename
postbox.js
18.399KB
Hapus
Edit
Rename
privacy-tools.js
10.654KB
Hapus
Edit
Rename
privacy-tools.min.js
5.021KB
Hapus
Edit
Rename
revisions.min.js
17.456KB
Hapus
Edit
Rename
set-post-thumbnail.js
0.855KB
Hapus
Edit
Rename
set-post-thumbnail.min.js
0.605KB
Hapus
Edit
Rename
site-health.js
12.697KB
Hapus
Edit
Rename
svg-painter.js
5.393KB
Hapus
Edit
Rename
svg-painter.min.js
2.332KB
Hapus
Edit
Rename
tags-box.js
10.879KB
Hapus
Edit
Rename
tags-box.min.js
3.005KB
Hapus
Edit
Rename
tags-suggest.js
5.516KB
Hapus
Edit
Rename
tags-suggest.min.js
2.197KB
Hapus
Edit
Rename
tags.js
4.615KB
Hapus
Edit
Rename
tags.min.js
1.819KB
Hapus
Edit
Rename
theme.js
54.366KB
Hapus
Edit
Rename
updates.js
91.897KB
Hapus
Edit
Rename
updates.min.js
40.103KB
Hapus
Edit
Rename
user-profile.js
13.184KB
Hapus
Edit
Rename
user-suggest.min.js
0.66KB
Hapus
Edit
Rename
widgets.min.js
12.32KB
Hapus
Edit
Rename
word-count.min.js
1.499KB
Hapus
Edit
Rename
xfn.min.js
0.447KB
Hapus
Edit
Rename
<=Back
/** * @output wp-admin/js/auth-app.js */ /* global authApp */ ( function( $, authApp ) { var $appNameField = $( '#app_name' ), $approveBtn = $( '#approve' ), $rejectBtn = $( '#reject' ), $form = $appNameField.closest( 'form' ), context = { userLogin: authApp.user_login, successUrl: authApp.success, rejectUrl: authApp.reject }; $approveBtn.on( 'click', function( e ) { var name = $appNameField.val(), appId = $( 'input[name="app_id"]', $form ).val(); e.preventDefault(); if ( $approveBtn.prop( 'aria-disabled' ) ) { return; } if ( 0 === name.length ) { $appNameField.trigger( 'focus' ); return; } $approveBtn.prop( 'aria-disabled', true ).addClass( 'disabled' ); var request = { name: name }; if ( appId.length > 0 ) { request.app_id = appId; } /** * Filters the request data used to Authorize an Application Password request. * * @since 5.6.0 * * @param {Object} request The request data. * @param {Object} context Context about the Application Password request. * @param {string} context.userLogin The user's login username. * @param {string} context.successUrl The URL the user will be redirected to after approving the request. * @param {string} context.rejectUrl The URL the user will be redirected to after rejecting the request. */ request = wp.hooks.applyFilters( 'wp_application_passwords_approve_app_request', request, context ); wp.apiRequest( { path: '/wp/v2/users/me/application-passwords?_locale=user', method: 'POST', data: request } ).done( function( response, textStatus, jqXHR ) { /** * Fires when an Authorize Application Password request has been successfully approved. * * In most cases, this should be used in combination with the {@see 'wp_authorize_application_password_form_approved_no_js'} * action to ensure that both the JS and no-JS variants are handled. * * @since 5.6.0 * * @param {Object} response The response from the REST API. * @param {string} response.password The newly created password. * @param {string} textStatus The status of the request. * @param {jqXHR} jqXHR The underlying jqXHR object that made the request. */ wp.hooks.doAction( 'wp_application_passwords_approve_app_request_success', response, textStatus, jqXHR ); var raw = authApp.success, url, message, $notice; if ( raw ) { url = raw + ( -1 === raw.indexOf( '?' ) ? '?' : '&' ) + 'site_url=' + encodeURIComponent( authApp.site_url ) + '&user_login=' + encodeURIComponent( authApp.user_login ) + '&password=' + encodeURIComponent( response.password ); window.location = url; } else { message = wp.i18n.sprintf( /* translators: %s: Application name. */ '<label for="new-application-password-value">' + wp.i18n.__( 'Your new password for %s is:' ) + '</label>', '<strong></strong>' ) + ' <input id="new-application-password-value" type="text" class="code" readonly="readonly" value="" />'; $notice = $( '<div></div>' ) .attr( 'role', 'alert' ) .attr( 'tabindex', -1 ) .addClass( 'notice notice-success notice-alt' ) .append( $( '<p></p>' ).addClass( 'application-password-display' ).html( message ) ) .append( '<p>' + wp.i18n.__( 'Be sure to save this in a safe location. You will not be able to retrieve it.' ) + '</p>' ); // We're using .text() to write the variables to avoid any chance of XSS. $( 'strong', $notice ).text( response.name ); $( 'input', $notice ).val( response.password ); $form.replaceWith( $notice ); $notice.trigger( 'focus' ); } } ).fail( function( jqXHR, textStatus, errorThrown ) { var errorMessage = errorThrown, error = null; if ( jqXHR.responseJSON ) { error = jqXHR.responseJSON; if ( error.message ) { errorMessage = error.message; } } var $notice = $( '<div></div>' ) .attr( 'role', 'alert' ) .addClass( 'notice notice-error' ) .append( $( '<p></p>' ).text( errorMessage ) ); $( 'h1' ).after( $notice ); $approveBtn.removeProp( 'aria-disabled', false ).removeClass( 'disabled' ); /** * Fires when an Authorize Application Password request encountered an error when trying to approve the request. * * @since 5.6.0 * @since 5.6.1 Corrected action name and signature. * * @param {Object|null} error The error from the REST API. May be null if the server did not send proper JSON. * @param {string} textStatus The status of the request. * @param {string} errorThrown The error message associated with the response status code. * @param {jqXHR} jqXHR The underlying jqXHR object that made the request. */ wp.hooks.doAction( 'wp_application_passwords_approve_app_request_error', error, textStatus, errorThrown, jqXHR ); } ); } ); $rejectBtn.on( 'click', function( e ) { e.preventDefault(); /** * Fires when an Authorize Application Password request has been rejected by the user. * * @since 5.6.0 * * @param {Object} context Context about the Application Password request. * @param {string} context.userLogin The user's login username. * @param {string} context.successUrl The URL the user will be redirected to after approving the request. * @param {string} context.rejectUrl The URL the user will be redirected to after rejecting the request. */ wp.hooks.doAction( 'wp_application_passwords_reject_app', context ); // @todo: Make a better way to do this so it feels like less of a semi-open redirect. window.location = authApp.reject; } ); $form.on( 'submit', function( e ) { e.preventDefault(); } ); }( jQuery, authApp ) );
Liking