Files
ultimatemember/includes/admin/core/packages/1.3.39/init.php
T
nikitozzzzzzz f5788e2c45 - fixed upgrade process for big DB data;
- small fixes for notices;
2018-03-25 19:14:42 +03:00

30 lines
846 B
PHP

<?php ?>
<script type="text/javascript">
jQuery( document ).ready( function() {
um_add_upgrade_log( 'Upgrade Usermeta...' );
jQuery.ajax({
url: '<?php echo admin_url( 'admin-ajax.php' ) ?>',
type: 'POST',
dataType: 'json',
data: {
action: 'um_usermetaquery1339'
},
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>