BackupPluginsNotice.php
1 year ago
BooleanNotice.php
2 years ago
CliIntegrationNotice.php
1 day ago
DisabledItemsNotice.php
2 years ago
DismissNotice.php
1 day ago
NextGenEngineNotice.php
1 day ago
Notices.php
1 day ago
NoticesHandler.php
11 months ago
ObjectCacheNotice.php
11 months ago
OutdatedWpStagingNotice.php
1 year ago
WarningsNotice.php
2 years ago
WpVersionCompatNotice.php
3 months ago
NextGenEngineNotice.php
27 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WPStaging\Framework\Notices; |
| 4 | |
| 5 | /** |
| 6 | * Global warning shown when the user was reverted from the Next-Gen engine and |
| 7 | * may have staging sites that were created with it. Those sites can be corrupted |
| 8 | * (see issue #5346) and must be deleted and recreated with the Classic engine. |
| 9 | * |
| 10 | * Enabled by the upgrade routine, dismissed via the shared wpstg_dismiss_notice flow. |
| 11 | * |
| 12 | * @see \WPStaging\Framework\Notices\Notices |
| 13 | * @see \WPStaging\Framework\Notices\DismissNotice |
| 14 | */ |
| 15 | class NextGenEngineNotice extends BooleanNotice |
| 16 | { |
| 17 | /** |
| 18 | * The option name storing the visibility of the Next-Gen engine warning. |
| 19 | */ |
| 20 | const OPTION_NAME = 'wpstg_next_gen_engine_notice'; |
| 21 | |
| 22 | public function getOptionName(): string |
| 23 | { |
| 24 | return self::OPTION_NAME; |
| 25 | } |
| 26 | } |
| 27 |