You appear to be a bot. Output may be restricted
Description
When the akismet option is updated, run the registration call.
This should only be run when the option is updated from the Jetpack/WP.com API call, and only if the new key is different than the old key.
Usage
Akismet::updated_option( $old_value, $value );
Parameters
- $old_value
- ( mixed ) required – The old option value.
- $value
- ( mixed ) required – The new option value.
Returns
void
Source
File name: akismet/class.akismet.php
Lines:
1 to 10 of 10
public static function updated_option( $old_value, $value ) { // Not an API call if ( ! class_exists( 'WPCOM_JSON_API_Update_Option_Endpoint' ) ) { return; } // Only run the registration if the old key is different. if ( $old_value !== $value ) { self::verify_key( $value ); } }