| 1 |
<?php |
| 2 |
/** |
| 3 |
* Template for displaying update message |
| 4 |
* |
| 5 |
* @version 4.0.1 |
| 6 |
*/ |
| 7 |
|
| 8 |
defined( 'ABSPATH' ) || exit; |
| 9 |
|
| 10 |
if ( ! isset( $data ) || ! isset( $data['check'] ) || ! $data['check'] ) { |
| 11 |
return; |
| 12 |
} |
| 13 |
?> |
| 14 |
|
| 15 |
<div class="notice notice-warning lp-notice-update-database"> |
| 16 |
<p> |
| 17 |
<?php _e( '<strong>LearnPress update</strong> – We need to update your database to the latest version.', 'learnpress' ); ?> |
| 18 |
</p> |
| 19 |
<p> |
| 20 |
<a class="button button-primary lp-btn-go-upgrade-db" |
| 21 |
data-context="message" |
| 22 |
href="<?php echo esc_url_raw( admin_url( 'admin.php?page=learn-press-tools&tab=database&action=upgrade-db' ) ); ?>"> |
| 23 |
<?php esc_html_e( 'Go to Update', 'learnpress' ); ?> |
| 24 |
</a> |
| 25 |
</p> |
| 26 |
</div> |
| 27 |
|