Telemetry::clean_up()

Clean up some old data.

If the "tec" plugin exists, and it has no wp_slug, remove it. This prevents a fatal with the Telemetry library when we call get_opted_in_plugins().


Return

(void)


Top ↑

Source

File: src/Common/Telemetry/Telemetry.php

	public static function clean_up(): void {
		$status = static::get_status_object();
		$option = $status->get_option();
		if ( ! empty( $option['plugins'][ 'tec' ] ) && empty( $option['plugins'][ 'tec' ]['wp_slug'] ) ) {
			$status->remove_plugin( 'tec' );
		}
	}

Top ↑

Changelog

Changelog
Version Description
5.1.1.1 Introduced.