Skip to content

Commit

Permalink
Remove key_is_read_option_name altogether
Browse files Browse the repository at this point in the history
  • Loading branch information
Imran92 committed Dec 13, 2024
1 parent 94abe6d commit 2871fce
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@
* @hide-in-jetpack
*/
class WPCOM_REST_API_V2_Endpoint_Site_Migration_WPCOM_Migration_Key extends WP_REST_Controller {
/**
* Option name that tracks wether the key has been read or not.
* The only possible value for the option is 'read'.
*
* @var string
*/
protected $key_is_read_option_name = 'wpcom_site_migration_wpcom_migration_key_read';

/**
* Class constructor
Expand Down Expand Up @@ -85,8 +78,6 @@ private function get_migration_key() {
$wpcom_migration_settings = new WPCOMWPSettings();
$wpcom_migration_info = new WPCOMInfo( $wpcom_migration_settings );

update_option( $this->key_is_read_option_name, 'read' );

return $wpcom_migration_info->getConnectionKey();
}

Expand Down

0 comments on commit 2871fce

Please sign in to comment.