| @@ -63,8 +63,28 @@ | ||
| 63 | 63 | return $disabled; |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | /** |
| 67 | + * Checks if the WordProof integration is disabled; if so, deletes the tokens | |
| 68 | + * | |
| 69 | + * We delete them if the WordProof integration is disabled, no matter if the | |
| 70 | + * value has actually changed or not. | |
| 71 | + * | |
| 72 | + * @deprecated 22.10 | |
| 73 | + * @codeCoverageIgnore | |
| 74 | + * | |
| 75 | + * @param array $old_value The old value of the option. | |
| 76 | + * @param array $new_value The new value of the option. | |
| 77 | + * | |
| 78 | + * @return bool Whether the WordProof tokens have been deleted or not. | |
| 79 | + */ | |
| 80 | + public function check_wordproof_option_disabled( $old_value, $new_value ) { | |
| 81 | + \_deprecated_function( __METHOD__, 'Yoast SEO 22.10' ); | |
| 82 | + | |
| 83 | + return true; | |
| 84 | + } | |
| 85 | + | |
| 86 | + /** | |
| 67 | 87 | * Checks if the usage tracking feature is toggled; if so, set an option to stop us from messing with it. |
| 68 | 88 | * |
| 69 | 89 | * @param array $old_value The old value of the option. |
| 70 | 90 | * @param array $new_value The new value of the option. |