PluginProbe ʕ •ᴥ•ʔ
WP STAGING – WordPress Backup, Restore, Migration & Clone / 4.9.2
WP STAGING – WordPress Backup, Restore, Migration & Clone v4.9.2
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 1 week ago aios-salt-postfix-enabled.php 1 year ago analytics-consent-failed.php 1 year ago analytics-consent-refused.php 1 year ago analytics-modal.php 1 month ago backup-plugins-notice.php 7 months ago beta.php 1 year ago cache-directory-permission-problem.php 1 year ago cli-integration-notice.php 4 days ago cron-warning-notice.php 2 months ago directory-listing-could-not-be-prevented.php 7 months ago disabled-items-notice.php 1 year ago disabled-optimizer-notice.php 1 year ago elementor-cloud-notice.php 4 months ago logs-directory-permission-problem.php 1 year ago low-memory-limit.php 1 year ago mu-plugin-directory-permission-problem.php 1 year ago next-gen-engine-notice.php 4 days ago no-db-prefix-notice.php 1 year ago object-cache-skipped.php 11 months ago outdated-wp-staging-hooks.php 1 year ago outdated-wp-staging-version.php 1 year ago pro-crons-notice.php 1 year ago review-prompt-handlers.php 2 weeks ago review-prompt-modal.php 2 weeks ago settings_option_corrupt.php 1 year ago staging-directory-permission-problem.php 1 year ago staging-symlink-enabled-notice.php 10 months ago table-tmp-prefix-conflict-notice.php 1 year ago transient.php 1 year ago uploads-outside-wp-root.php 1 year ago vars-directory-permission-problem.php 1 year ago wordfence-userini-renamed.php 5 months ago wp-options-missing-pk.php 5 months ago wp-version-compat-notice.php 4 months ago wpe-permalink-issue-notice.php 1 year ago wrong-scheme.php 1 year ago
disabled-items-notice.php
175 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 $excludedGoDaddyFiles
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($excludedGoDaddyFiles) && count($excludedGoDaddyFiles) > 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-godaddy-files-link">' . esc_html__('These GoDaddy files/folders', 'wp-staging') . '</a>'
127 );
128 ?>
129 <br>
130 <ul id="wpstg-excluded-godaddy-files-list" class="wpstg-disable-item-notice-excluded-files-ul">
131 <?php foreach ($excludedGoDaddyFiles as $excludedGoDaddyFile) : ?>
132 <li><span class="wpstg-disable-item-notice-files-font"></span> <?php echo esc_html($excludedGoDaddyFile); ?></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 jQuery(document).ready(function ($) {
149 //display or hide excluded files list
150 const el = $('#wpstg-excluded-files-list');
151 el.hide();
152 $('#wpstg-excluded-files-link').click(function(e) {
153 e.preventDefault();
154 if (el.is(':visible')) {
155 el.hide('slow');
156 return;
157 }
158 el.show('slow');
159 });
160
161 //display or hide excluded godaddy files list
162 const goElement = $('#wpstg-excluded-godaddy-files-list');
163 goElement.hide();
164 $('#wpstg-excluded-godaddy-files-link').click(function(e) {
165 e.preventDefault();
166 if (goElement.is(':visible')) {
167 goElement.hide('slow');
168 return;
169 }
170 goElement.show('slow');
171 });
172 });
173 </script>
174 </div>
175