PluginProbe
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance / 4.7.0
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance v4.7.0
4.7.0 4.6.1 4.6.0 4.5.5 4.5.4 4.5.3 4.5.2 3.2.20 3.2.21 3.2.22 3.2.3 3.2.5 3.2.6 3.2.7 3.2.9 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.7.0 3.7.1 All 111 releases
← All changes | templates/take-a-backup.php +5 -5 3.5.0 → 4.7.0 View file →
@@ -1,12 +1,12 @@
1 1 <?php
2 2
3 -if (!defined('WPO_VERSION')) die('No direct access allowed');
3 +if (!defined('ABSPATH')) die('No direct access allowed');
4 4
5 5 global $wpo_backup_initialized, $wpo_take_backup_checkbox_id;
6 6
7 -$updraftplus_admin = !empty($GLOBALS['updraftplus_admin']) ? $GLOBALS['updraftplus_admin'] : null;
8 -$updraftplus = !empty($GLOBALS['updraftplus']) ? $GLOBALS['updraftplus'] : null;
7 +$updraftplus_admin = empty($GLOBALS['updraftplus_admin']) ? null : $GLOBALS['updraftplus_admin'];
8 +$updraftplus = empty($GLOBALS['updraftplus']) ? null : $GLOBALS['updraftplus'];
9 9
10 10 // Check if UpdraftPlus plugin status.
11 11 $updraftplus_status = $this->is_installed('UpdraftPlus - Backup/Restore');
12 12 $check_version = false;
@@ -58,9 +58,9 @@
58 58 }
59 59
60 60 $option_value = $options->get_option($checkbox_name, $default_checkbox_value);
61 61
62 -$is_checked = ('true' == $option_value);
62 +$is_checked = ('true' === $option_value);
63 63
64 64 ?>
65 65 <p class="wpo-take-a-backup">
66 66 <input class="enable-auto-backup" name="<?php echo esc_attr($checkbox_name); ?>" id="<?php echo esc_attr($checkbox_name); ?>" type="checkbox" value="true" <?php checked($is_checked);?> <?php echo esc_attr($disabled_backup); ?> />
@@ -67,9 +67,9 @@
67 67 <label for="<?php echo esc_attr($checkbox_name); ?>"> <?php echo esc_html($label_text); ?> </label>
68 68
69 69 <?php
70 70 // UpdraftPlus is not installed.
71 - if ('disabled' == $disabled_backup && !$updraftplus_status['installed']) {
71 + if ('disabled' === $disabled_backup && !$updraftplus_status['installed']) {
72 72 echo '<small><a href="'.esc_url(wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=updraftplus'), 'install-plugin_updraftplus')).'"> '.esc_html__('Follow this link to install UpdraftPlus, to take a backup before optimization', 'wp-optimize').' </a></small>';
73 73 } else {
74 74 // Build activate url.
75 75 $activate_url = add_query_arg(array(