PluginProbe ʕ •ᴥ•ʔ
WP STAGING – WordPress Backups, Restore, Migration & Clone / 4.11.1
WP STAGING – WordPress Backups, Restore, Migration & Clone v4.11.1
4.11.2 4.11.1 4.11.0 4.10.0 4.9.5 4.9.4 4.9.3 4.9.2 4.9.1 4.9.0 4.8.1 trunk 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.10.0 3.2.0 3.3.1 3.3.2 3.3.3 3.4.1 3.4.3 3.5.0 3.6.0 3.7.1 3.8.0 3.8.1 3.8.2 3.8.3 3.8.4 3.8.5 3.8.6 3.8.7 3.9.0 3.9.1 3.9.2 3.9.3 3.9.4 4.0.0 4.1.0 4.1.1 4.1.2 4.1.3 4.1.4 4.2.0 4.2.1 4.3.0 4.3.1 4.3.2 4.4.0 4.5.0 4.6.0 4.7.0 4.7.1 4.7.2 4.7.3 4.8.0
wp-staging / views / notices / disabled-items-notice.php
wp-staging / views / notices Last commit date
_partial 2 months ago aios-salt-postfix-enabled.php 2 years ago analytics-consent-failed.php 2 years ago analytics-consent-refused.php 2 years ago analytics-modal.php 3 weeks ago backup-plugins-notice.php 8 months ago beta.php 2 years ago cache-directory-permission-problem.php 2 years ago cli-integration-notice.php 1 week ago cron-warning-notice.php 1 week ago directory-listing-could-not-be-prevented.php 8 months ago disabled-items-notice.php 1 week ago disabled-optimizer-notice.php 2 years ago elementor-cloud-notice.php 5 months ago logs-directory-permission-problem.php 2 years ago low-memory-limit.php 2 years ago mu-plugin-directory-permission-problem.php 2 years ago next-gen-engine-notice.php 1 month ago no-db-prefix-notice.php 2 years ago object-cache-skipped.php 1 year ago outdated-wp-staging-hooks.php 2 years ago outdated-wp-staging-version.php 2 years ago pro-crons-notice.php 2 years ago review-prompt-handlers.php 2 months ago review-prompt-modal.php 2 months ago settings_option_corrupt.php 2 years ago staging-directory-permission-problem.php 4 weeks ago staging-symlink-enabled-notice.php 11 months ago table-tmp-prefix-conflict-notice.php 2 years ago transient.php 2 years ago uploads-outside-wp-root.php 2 years ago vars-directory-permission-problem.php 2 years ago wordfence-userini-renamed.php 7 months ago wp-options-missing-pk.php 7 months ago wp-version-compat-notice.php 5 months ago wpe-permalink-issue-notice.php 2 years ago wrong-scheme.php 2 years ago
disabled-items-notice.php
176 lines
1 <?php
2
3 /**
4 * @see \WPStaging\Framework\Notices\Notices::renderNotices
5 *
6 * @var object $this \WPStaging\Framework\Notices\Notices (Don't switch the order to avoid phpstan error)
7 * @var bool $outgoingMailsDisabled
8 * @var bool $freemiusOptionsCleared
9 * @var bool $isJetpackStagingModeActive
10 * @var array $excludedPlugins
11 * @var array $excludedFiles
12 * @var array $excludedHostingFiles
13 */
14
15 use WPStaging\Framework\Notices\Notices;
16
17 ?>
18 <style>
19 .wpstg-disable-item-notice-ml-12 {
20 margin-left: 12px;
21 }
22
23 .wpstg-disable-item-notice-excluded-files-ul {
24 margin-left: 0;
25 margin-top: 4px;
26 }
27
28 .wpstg-disable-item-notice-files-font {
29 font-size: 13px;
30 }
31 </style>
32 <?php
33 if (empty(get_option('permalink_structure'))) {
34 $permalinksMessage = sprintf(
35 esc_html__('Post name permalinks are disabled. %s', 'wp-staging'),
36 '<a href="https://wp-staging.com/docs/activate-permalinks-staging-site/" target="_blank">' . esc_html__('How to activate permalinks', 'wp-staging') . '</a>'
37 );
38 } elseif ($this->serverVars->isApache() && !file_exists(get_home_path() . '.htaccess')) {
39 $permalinksMessage = esc_html__('.htaccess is missing but required for permalinks! Go to Settings > Permalinks and click on Save Settings to create the .htaccess to make permalinks work!', 'wp-staging');
40 } elseif (!$this->serverVars->isApache()) {
41 $permalinksMessage = sprintf(
42 esc_html__('Permalinks are active but may not work. Please %s to find out how to make them work.', 'wp-staging'),
43 '<a href="https://wp-staging.com/docs/activate-permalinks-staging-site/" target="_blank">' . esc_html__('read this article', 'wp-staging') . '</a>'
44 );
45 }
46
47 ?>
48 <div class="notice notice-warning wpstg-disabled-items-notice">
49 <p><strong><?php esc_html_e('WP STAGING - Notes:', 'wp-staging'); ?></strong></p>
50 <ol class="wpstg-disable-item-notice-ml-12">
51 <?php if (!defined('WP_CACHE') || WP_CACHE === false) :?>
52 <li>
53 <?php
54 echo sprintf(
55 esc_html__('WP STAGING Disabled the cache by setting the constant %1$s to %2$s in the file %3$s. %4$s', 'wp-staging'),
56 '<code>WP_CACHE</code>',
57 '<code>FALSE</code>',
58 '<code>wp-config.php</code>',
59 '<a href="https://wp-staging.com/docs/how-to-activate-caching-on-staging-site/" target="_blank">' . esc_html__('You can revert this easily', 'wp-staging') . '</a>'
60 );
61 ?>
62 </li>
63 <?php endif; ?>
64 <?php if (isset($permalinksMessage)) : ?>
65 <li> <?php echo wp_kses_post($permalinksMessage); ?></li>
66 <?php endif; ?>
67 <?php if ($outgoingMailsDisabled) : ?>
68 <li>
69 <?php
70 echo sprintf(
71 esc_html__('Disabled outgoing emails. %s', 'wp-staging'),
72 '<a href="https://wp-staging.com/docs/how-to-activate-email-sending-on-the-staging-site/" target="_blank">' . esc_html__('How to activate email sending', 'wp-staging') . '</a>'
73 );
74 ?>
75 </li>
76 <?php endif; ?>
77 <?php if ($freemiusOptionsCleared) : ?>
78 <li>
79 <?php esc_html_e('You may need to consider to reactivate your Freemius license to make sure that Freemius integration does not act slightly differently in your staging site.', 'wp-staging') ?>
80 <a href="https://wp-staging.com/docs/freemius-integration-how-its-handled-by-wp-staging/"><?php esc_html_e('Read more here', 'wp-staging') ?>
81 </li>
82 <?php endif; ?>
83 <?php if ($isJetpackStagingModeActive) : ?>
84 <li>
85 <?php esc_html_e('Jetpack constant JETPACK_STAGING_MODE is enabled on this staging site.', 'wp-staging') ?>
86 <a href="https://wp-staging.com/docs/make-jetpack-working-on-staging-site/"><?php esc_html_e('Read more here', 'wp-staging') ?>
87 </li>
88 <?php endif; ?>
89 <?php if (count($excludedPlugins) > 0) : ?>
90 <li>
91 <?php esc_html_e('Excluded the following plugins:', 'wp-staging') ?>
92 <ul class="wpstg-disable-item-notice-excluded-files-ul">
93 <?php foreach ($excludedPlugins as $excludedPlugin) : ?>
94 <li> <span class="wpstg-disable-item-notice-files-font"></span> <?php echo esc_html($excludedPlugin); ?></li>
95 <?php endforeach; ?>
96 </ul>
97 </li>
98 <?php endif; ?>
99 <?php if (is_array($excludedFiles) && count($excludedFiles) > 0) : ?>
100 <li>
101 <?php
102 echo sprintf(
103 esc_html__('%s were excluded and not copied to the staging site:', 'wp-staging'),
104 '<a href="#" id="wpstg-excluded-files-link">' . esc_html__('These files', 'wp-staging') . '</a>'
105 );
106 ?>
107 <br>
108 <ul id="wpstg-excluded-files-list" class="wpstg-disable-item-notice-excluded-files-ul">
109 <?php foreach ($excludedFiles as $excludedFile) : ?>
110 <li><span class="wpstg-disable-item-notice-files-font"></span> <?php echo esc_html($excludedFile); ?></li>
111 <?php endforeach; ?>
112 </ul>
113 <?php
114 echo sprintf(
115 esc_html__('You can use %s to change this.', 'wp-staging'),
116 '<a href="https://wp-staging.com/docs/actions-and-filters/#Exclude_Files" target="_blank">' . esc_html__('this filter', 'wp-staging') . '</a>'
117 );
118 ?>
119 </li>
120 <?php endif; ?>
121 <?php if (is_array($excludedHostingFiles) && count($excludedHostingFiles) > 0) : ?>
122 <li>
123 <?php
124 echo sprintf(
125 esc_html__('%s were excluded and not copied to the staging site:', 'wp-staging'),
126 '<a href="#" id="wpstg-excluded-hosting-files-link">' . esc_html__('These hosting provider files/folders', 'wp-staging') . '</a>'
127 );
128 ?>
129 <br>
130 <ul id="wpstg-excluded-hosting-files-list" class="wpstg-disable-item-notice-excluded-files-ul">
131 <?php foreach ($excludedHostingFiles as $excludedHostingFile) : ?>
132 <li><span class="wpstg-disable-item-notice-files-font"></span> <?php echo esc_html($excludedHostingFile); ?></li>
133 <?php endforeach; ?>
134 </ul>
135 <?php echo esc_html__('Excluding these files/folders allows you to connect to this staging site and update WordPress without errors.', 'wp-staging'); ?>
136 </li>
137 <?php endif; ?>
138 </ol>
139 <p>
140 <?php Notices::renderNoticeDismissAction(
141 $this->viewsNoticesPath,
142 'disabled_items',
143 '.wpstg_dismiss_disabled_items_notice',
144 '.wpstg-disabled-items-notice'
145 ) ?>
146 </p>
147 <script>
148 (function() {
149 const toggles = {
150 'wpstg-excluded-files-link': 'wpstg-excluded-files-list',
151 'wpstg-excluded-hosting-files-link': 'wpstg-excluded-hosting-files-list',
152 };
153
154 Object.values(toggles).forEach(function(listId) {
155 const list = document.getElementById(listId);
156 if (list) {
157 list.style.display = 'none';
158 }
159 });
160
161 document.addEventListener('click', function(event) {
162 const link = event.target.closest('a[id]');
163 if (!link || !toggles[link.id]) {
164 return;
165 }
166
167 event.preventDefault();
168 const list = document.getElementById(toggles[link.id]);
169 if (list) {
170 list.style.display = list.style.display === 'none' ? '' : 'none';
171 }
172 });
173 })();
174 </script>
175 </div>
176