saidweekly. $swcc_remove_default = 'wordpress.org' === SWCC_DISTRIBUTION ? '1' : '0'; if ( '1' === (string) get_option( 'swcc_uninstall_remove_credentials', $swcc_remove_default ) ) { delete_option( 'swcc_site_id' ); delete_option( 'swcc_signing_secret' ); delete_option( 'swcc_activated_origin' ); delete_option( 'swcc_uninstall_remove_credentials' ); delete_option( 'swcc_plan' ); } delete_option( 'swcc_service_url' ); // Clear lock rows left by the retired pre-MMBC-65 claim/release workflow. // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching $wpdb->query( $wpdb->prepare( "DELETE FROM `{$wpdb->options}` WHERE `option_name` LIKE %s", $wpdb->esc_like( 'swcc_lock_' ) . '%' ) ); wp_cache_delete( 'notoptions', 'options' ); wp_cache_delete( 'alloptions', 'options' );