" ) ) { delete_option( Db_Constants::STORE_IDS ); $this->migrate_storeids(); } } /** * Populates store ids in default locale * * @since 1.4.12 */ private function migrate_storeids() { $default_marketplace_name = get_option( Db_Constants::DEFAULT_MARKETPLACE, Db_Constants::DEFAULT_MARKETPLACE_NAME ); $store_id_list = get_option( Db_Constants::STORE_ID_NAMES ); if ( $store_id_list ) { $marketplace_store_id_mapping = array( $default_marketplace_name => explode( Plugin_Constants::NEWLINE_SEPARATOR, $store_id_list ) ); update_option( Db_Constants::STORE_IDS, json_encode( $marketplace_store_id_mapping ) ); } } } ?>