1 <?php
2 3 4 5 6 7 8 9 10
11
12
13 if ( !defined( 'ABSPATH' ) ) exit;
14
15 16 17 18 19 20
21 function edd_upgrades_screen() {
22 ?>
23 <div class="wrap">
24 <h2><?php _e( 'Easy Digital Downloads - Upgrades', 'edd' ); ?></h2>
25 <div id="edd-upgrade-status">
26 <p>
27 <?php _e( 'The upgrade process has started, please be patient. This could take several minutes. You will be automatically redirected when the upgrade is finished.', 'edd' ); ?>
28 <img src="<?php echo EDD_PLUGIN_URL . '/assets/images/loading.gif'; ?>" id="edd-upgrade-loader"/>
29 </p>
30 </div>
31 <script type="text/javascript">
32 jQuery( document ).ready( function() {
33
34 var data = { action: 'edd_trigger_upgrades' };
35 jQuery.post( ajaxurl, data, function (response) {
36 if( response == 'complete' ) {
37 jQuery('#edd-upgrade-loader').hide();
38 document.location.href = 'index.php?page=edd-about';
39 }
40 });
41 });
42 </script>
43 </div>
44 <?php
45 }