| Server IP : 66.241.125.127 / Your IP : 216.73.216.164 Web Server : Apache/2.4.67 (Debian) System : Linux 68372e0bd90938 6.12.91-fly #1 SMP PREEMPT_DYNAMIC Mon Jun 1 15:49:04 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /.fly-upper-layer/var/www/html/wp-content/themes/storefront/assets/js/admin/ |
Upload File : |
( function ( wp, $ ) {
'use strict';
if ( ! wp ) {
return;
}
$( function () {
$( document ).on( 'click', '.sf-install-now', function ( event ) {
const $button = $( event.target );
if ( $button.hasClass( 'activate-now' ) ) {
return true;
}
event.preventDefault();
if (
$button.hasClass( 'updating-message' ) ||
$button.hasClass( 'button-disabled' )
) {
return;
}
if (
wp.updates.shouldRequestFilesystemCredentials &&
! wp.updates.ajaxLocked
) {
wp.updates.requestFilesystemCredentials( event );
$( document ).on( 'credential-modal-cancel', function () {
const $message = $( '.sf-install-now.updating-message' );
$message
.removeClass( 'updating-message' )
.text( wp.updates.l10n.installNow );
wp.a11y.speak( wp.updates.l10n.updateCancel, 'polite' );
} );
}
wp.updates.installPlugin( {
slug: $button.data( 'slug' ),
} );
} );
} );
} )( window.wp, jQuery );