| 1 |
<?php |
| 2 |
/** |
| 3 |
* @package Polylang |
| 4 |
* |
| 5 |
* /!\ THE CONSTANTS `POLYLANG_BASENAME` AND `POLYLANG_VERSION` MUST BE DEFINED. |
| 6 |
*/ |
| 7 |
|
| 8 |
/** |
| 9 |
* Deactivation class compatible with multisite. |
| 10 |
* |
| 11 |
* @since 3.8 |
| 12 |
*/ |
| 13 |
class PLL_Deactivate extends PLL_Abstract_Deactivate { |
| 14 |
/** |
| 15 |
* The process to run on plugin deactivation. |
| 16 |
* |
| 17 |
* @since 0.5 |
| 18 |
* @since 3.8 Moved from the class `PLL_Install`. |
| 19 |
* Renamed from `_deactivate()`. |
| 20 |
* Made it `static`. |
| 21 |
* |
| 22 |
* @return void |
| 23 |
*/ |
| 24 |
protected static function process(): void { |
| 25 |
delete_option( 'rewrite_rules' ); // Don't use flush_rewrite_rules at network activation. See #32471. |
| 26 |
} |
| 27 |
} |
| 28 |
|