Files
ultimatemember/includes/admin/core/packages/1.3.39/init.php
T

31 lines
856 B
PHP
Raw Normal View History

2018-03-25 19:14:42 +03:00
<?php ?>
<script type="text/javascript">
jQuery( document ).ready( function() {
um_add_upgrade_log( 'Upgrade Usermeta...' );
jQuery.ajax({
2018-11-21 14:01:18 +02:00
url: wp.ajax.settings.url,
2018-03-25 19:14:42 +03:00
type: 'POST',
dataType: 'json',
data: {
2018-11-21 14:01:18 +02:00
action: 'um_usermetaquery1339',
nonce: um_admin_scripts.nonce
2018-03-25 19:14:42 +03:00
},
success: function( response ) {
if ( typeof response.data != 'undefined' ) {
um_add_upgrade_log( response.data.message );
//switch to the next package
um_run_upgrade();
} else {
um_add_upgrade_log( 'Wrong AJAX response...' );
um_add_upgrade_log( 'Your upgrade was crashed, please contact with support' );
}
},
error: function() {
um_add_upgrade_log( 'Something went wrong with AJAX request...' );
um_add_upgrade_log( 'Your upgrade was crashed, please contact with support' );
}
});
});
</script>