PluginProbe ʕ •ᴥ•ʔ
WP STAGING – WordPress Backup, Restore, Migration & Clone / 3.3.1
WP STAGING – WordPress Backup, Restore, Migration & Clone v3.3.1
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 / Backend / views / notices / wp-options-missing-pk.php
wp-staging / Backend / views / notices Last commit date
_partial 2 years ago analytics-consent-failed.php 2 years ago analytics-consent-refused.php 2 years ago analytics-consent.php 3 years ago analytics-modal.php 2 years ago backup-plugins-notice.php 2 years ago beta.php 2 years ago cache-directory-permission-problem.php 3 years ago directory-listing-could-not-be-prevented.php 3 years ago disabled-items-notice.php 2 years ago disabled-optimizer-notice.php 3 years ago free-backup-update-notice.php 2 years ago logs-directory-permission-problem.php 3 years ago low-memory-limit.php 5 years ago mu-plugin-directory-permission-problem.php 2 years ago no-db-prefix-notice.php 2 years ago object-cache-skipped.php 2 years ago outdated-wp-staging-hooks.php 3 years ago outdated-wp-staging-version.php 3 years ago pro-crons-notice.php 2 years ago rating.php 2 years ago settings_option_corrupt.php 3 years ago staging-directory-permission-problem.php 2 years ago staging-symlink-enabled-notice.php 2 years ago table-tmp-prefix-conflict-notice.php 2 years ago transient.php 5 years ago uploads-outside-wp-root.php 2 years ago vars-directory-permission-problem.php 3 years ago wordfence-userini-renamed.php 3 years ago wp-options-missing-pk.php 3 years ago wp-version-compatible-message.php 3 years ago wpe-permalink-issue-notice.php 2 years ago wrong-scheme.php 3 years ago
wp-options-missing-pk.php
23 lines
1 <?php
2 /**
3 * @var string $optionTable
4 * @var bool $isPrimaryKeyMissing
5 * @var bool $isPrimaryKeyIsOptionName
6 * @see \WPStaging\Framework\Notices\Notices::renderNotices
7 */
8 ?>
9 <div class="notice notice-error">
10 <p>
11 <?php if ($isPrimaryKeyMissing) : ?>
12 <strong><?php echo sprintf(esc_html__('WP STAGING - The table %s has no primary key index or missing autoincrement flag.', 'wp-staging'), esc_html($optionTable))?></strong>
13 <br>
14 <?php esc_html_e('This is a serious issue and needs to be fixed as soon as possible. The longer you wait, the harder it gets to repair it and can make your site inaccessible at worst. We recommend fixing it right now! This error has either been caused by a person with access to the database or by another plugin. You should not do any changes to your site until this is fixed.', 'wp-staging') ?>
15 <?php elseif ($isPrimaryKeyIsOptionName) : ?>
16 <strong><?php echo sprintf(esc_html__('WP STAGING - The primary key for table %s has been changed from option_id to option_name.', 'wp-staging'), esc_html($optionTable))?></strong>
17 <br>
18 <?php esc_html_e('If you encounter performance issues during cloning or backup, we recommend changing it back to option_id as the primary key.', 'wp-staging') ?>
19 <?php endif; ?>
20 </p>
21 <p><a href="https://wp-staging.com/docs/missing-primary-key-in-table-wp-options" target="_blank"><strong><?php esc_html_e('How to fix this.', 'wp-staging') ?></strong></a></p>
22 </div>
23