_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
wp-version-compat-notice.php
128 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Compatibility status notice — shown inside the WP STAGING plugin UI when the |
| 5 | * plugin has not yet been validated for the currently installed WordPress version. |
| 6 | * |
| 7 | * @see \WPStaging\Framework\Notices\WpVersionCompatNotice::maybeShow() |
| 8 | * |
| 9 | * @var string $wpVersion Currently installed WordPress version. |
| 10 | * @var string $pluginVersion WP STAGING plugin version. |
| 11 | * @var string $wpMajorMinor Major.minor portion of $wpVersion (e.g. "6.6"). |
| 12 | * @var string $changelogUrl URL to the plugin changelog / release notes. |
| 13 | * @var string $supportUrl URL to the plugin support page. |
| 14 | * @var string $systemInfoUrl URL to the System Info admin page. |
| 15 | */ |
| 16 | |
| 17 | /* translators: %s: WordPress version string, e.g. "6.6.1" */ |
| 18 | $noticeTitle = sprintf(__('WordPress %s detected — validation pending', 'wp-staging'), $wpVersion); |
| 19 | |
| 20 | ?> |
| 21 | <div id="wpstg-compat-notice" |
| 22 | class="wpstg-flex wpstg-flex-col wpstg-rounded-md wpstg-border wpstg-border-solid wpstg-border-gray-200 wpstg-bg-gray-50 wpstg-p-4 wpstg-mt-5 wpstg-mr-5 dark:wpstg-bg-slate-800 dark:wpstg-border-slate-600" |
| 23 | data-wp-major-minor="<?php echo esc_attr($wpMajorMinor); ?>" |
| 24 | data-plugin-version="<?php echo esc_attr($pluginVersion); ?>"> |
| 25 | |
| 26 | <div class="wpstg-flex wpstg-items-start wpstg-gap-3"> |
| 27 | |
| 28 | <div class="wpstg-flex-shrink-0"> |
| 29 | <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" |
| 30 | fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" |
| 31 | stroke-linejoin="round" |
| 32 | class="wpstg-text-gray-400 dark:wpstg-text-slate-400" |
| 33 | aria-hidden="true"> |
| 34 | <circle cx="12" cy="12" r="10"></circle> |
| 35 | <line x1="12" y1="8" x2="12" y2="12"></line> |
| 36 | <line x1="12" y1="16" x2="12.01" y2="16"></line> |
| 37 | </svg> |
| 38 | </div> |
| 39 | |
| 40 | <div class="wpstg-flex-1 wpstg-min-w-0"> |
| 41 | <p class="wpstg-text-sm wpstg-font-semibold wpstg-text-gray-700 dark:wpstg-text-slate-200 wpstg-m-0"> |
| 42 | <?php echo esc_html($noticeTitle); ?> |
| 43 | </p> |
| 44 | <p class="wpstg-text-sm wpstg-text-gray-600 dark:wpstg-text-slate-300 wpstg-mt-1 wpstg-mb-0"> |
| 45 | <?php esc_html_e('WP STAGING typically works normally during the short window after a WordPress release.', 'wp-staging'); ?> |
| 46 | </p> |
| 47 | <p class="wpstg-text-xs wpstg-text-gray-500 dark:wpstg-text-slate-400 wpstg-mt-1 wpstg-mb-0"> |
| 48 | <?php esc_html_e("We'll mark this WordPress version as validated after final checks. If you notice an issue,", 'wp-staging'); ?> |
| 49 | <a href="<?php echo esc_url($supportUrl); ?>" target="_blank" rel="noopener noreferrer" |
| 50 | class="wpstg-text-gray-600 dark:wpstg-text-slate-300 wpstg-underline wpstg-font-medium"> |
| 51 | <?php esc_html_e('send us your logs', 'wp-staging'); ?></a>. |
| 52 | </p> |
| 53 | </div> |
| 54 | |
| 55 | <div class="wpstg-flex wpstg-items-center wpstg-gap-3 wpstg-flex-shrink-0"> |
| 56 | <button type="button" |
| 57 | id="wpstg-compat-notice-details-btn" |
| 58 | aria-expanded="false" |
| 59 | aria-controls="wpstg-compat-notice-panel" |
| 60 | class="wpstg-inline-flex wpstg-items-center wpstg-gap-1 wpstg-rounded-md wpstg-border wpstg-border-solid wpstg-border-gray-300 wpstg-bg-white dark:wpstg-bg-slate-700 dark:wpstg-border-slate-500 wpstg-px-3 wpstg-py-1.5 wpstg-text-sm wpstg-font-medium wpstg-text-gray-600 dark:wpstg-text-slate-200 wpstg-cursor-pointer"> |
| 61 | <?php esc_html_e('Compatibility details', 'wp-staging'); ?> |
| 62 | <svg id="wpstg-compat-notice-chevron" |
| 63 | xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" |
| 64 | fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" |
| 65 | stroke-linejoin="round" aria-hidden="true"> |
| 66 | <polyline points="6 9 12 15 18 9"></polyline> |
| 67 | </svg> |
| 68 | </button> |
| 69 | |
| 70 | <button type="button" |
| 71 | id="wpstg-compat-notice-dismiss-btn" |
| 72 | aria-label="<?php esc_attr_e('Dismiss compatibility notice', 'wp-staging'); ?>" |
| 73 | class="wpstg-text-sm wpstg-text-gray-500 dark:wpstg-text-slate-400 wpstg-bg-transparent wpstg-border-0 wpstg-cursor-pointer wpstg-p-0"> |
| 74 | <?php esc_html_e('Dismiss', 'wp-staging'); ?> |
| 75 | </button> |
| 76 | </div> |
| 77 | </div> |
| 78 | |
| 79 | <div id="wpstg-compat-notice-panel" |
| 80 | class="wpstg-hidden wpstg-mt-4 -wpstg-mx-4 wpstg-px-4 wpstg-pt-3 wpstg-pb-4 wpstg-border-0 wpstg-border-t wpstg-border-solid wpstg-border-gray-200 dark:wpstg-border-slate-600"> |
| 81 | <dl class="wpstg-grid wpstg-gap-y-2 wpstg-text-sm wpstg-ml-8"> |
| 82 | |
| 83 | <div class="wpstg-flex wpstg-gap-2"> |
| 84 | <dt class="wpstg-font-medium wpstg-text-gray-700 dark:wpstg-text-slate-200 wpstg-w-40 wpstg-flex-shrink-0"> |
| 85 | <?php esc_html_e('Status', 'wp-staging'); ?> |
| 86 | </dt> |
| 87 | <dd class="wpstg-text-gray-600 dark:wpstg-text-slate-300 wpstg-m-0"> |
| 88 | <?php esc_html_e('Validation pending', 'wp-staging'); ?> |
| 89 | </dd> |
| 90 | </div> |
| 91 | |
| 92 | <div class="wpstg-flex wpstg-gap-2"> |
| 93 | <dt class="wpstg-font-medium wpstg-text-gray-700 dark:wpstg-text-slate-200 wpstg-w-40 wpstg-flex-shrink-0"> |
| 94 | <?php esc_html_e('WordPress version', 'wp-staging'); ?> |
| 95 | </dt> |
| 96 | <dd class="wpstg-text-gray-600 dark:wpstg-text-slate-300 wpstg-m-0"> |
| 97 | <?php echo esc_html($wpVersion); ?> |
| 98 | </dd> |
| 99 | </div> |
| 100 | |
| 101 | <div class="wpstg-flex wpstg-gap-2"> |
| 102 | <dt class="wpstg-font-medium wpstg-text-gray-700 dark:wpstg-text-slate-200 wpstg-w-40 wpstg-flex-shrink-0"> |
| 103 | <?php esc_html_e('WP STAGING version', 'wp-staging'); ?> |
| 104 | </dt> |
| 105 | <dd class="wpstg-text-gray-600 dark:wpstg-text-slate-300 wpstg-m-0"> |
| 106 | <?php echo esc_html($pluginVersion); ?> |
| 107 | </dd> |
| 108 | </div> |
| 109 | |
| 110 | </dl> |
| 111 | |
| 112 | <div class="wpstg-flex wpstg-flex-wrap wpstg-gap-x-4 wpstg-gap-y-1 wpstg-mt-3 wpstg-text-sm wpstg-ml-8"> |
| 113 | <a href="<?php echo esc_url($changelogUrl); ?>" target="_blank" rel="noopener noreferrer" |
| 114 | class="wpstg-text-gray-600 dark:wpstg-text-slate-300 wpstg-underline"> |
| 115 | <?php esc_html_e('Release notes', 'wp-staging'); ?> |
| 116 | </a> |
| 117 | <a href="<?php echo esc_url($supportUrl); ?>" target="_blank" rel="noopener noreferrer" |
| 118 | class="wpstg-text-gray-600 dark:wpstg-text-slate-300 wpstg-underline"> |
| 119 | <?php esc_html_e('Contact support', 'wp-staging'); ?> |
| 120 | </a> |
| 121 | <a href="<?php echo esc_url($systemInfoUrl); ?>" |
| 122 | class="wpstg-text-gray-600 dark:wpstg-text-slate-300 wpstg-underline"> |
| 123 | <?php esc_html_e('Export logs', 'wp-staging'); ?> |
| 124 | </a> |
| 125 | </div> |
| 126 | </div> |
| 127 | </div> |
| 128 |