PR Vision v0.1.1: rename from peptide-geo-monitor + QA P2 fixes (#2)
Rename to PR Vision (PRV_/pr-vision); fix www-strip char-mask in competitor display (str_starts_with); make PHPCS a CI gate; remove dead in-run cache. QA: APPROVE — qa-reviews/pr-vision/2026-06-13-c633fdb9e1541386a713a6de12d2ee2ae4239640.md Agent-Session: pr-vision rename v0.1.1 merge
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
<?php
|
||||
/**
|
||||
* Peptide GEO Monitor — full data teardown on uninstall.
|
||||
* PR Vision — full data teardown on uninstall.
|
||||
*
|
||||
* Drops the custom pgm_ai_visibility table and deletes every wp_options
|
||||
* row whose name starts with "pgm_". WP-Cron events are already cleared
|
||||
* by PGM_Deactivator on deactivation; this runs after that.
|
||||
* Drops the custom prv_ai_visibility table and deletes every wp_options
|
||||
* row whose name starts with "prv_". WP-Cron events are already cleared
|
||||
* by PRV_Deactivator on deactivation; this runs after that.
|
||||
*
|
||||
* @see ARCHITECTURE.md — §Uninstall specification.
|
||||
* @see class-pgm-deactivator.php — Clears cron on deactivation.
|
||||
* @see class-prv-deactivator.php — Clears cron on deactivation.
|
||||
* @package PrVision
|
||||
*/
|
||||
|
||||
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
|
||||
@@ -18,17 +19,17 @@ global $wpdb;
|
||||
|
||||
/* ── 1. Drop the custom table ─────────────────────────────────────── */
|
||||
|
||||
$table = $wpdb->prefix . 'pgm_ai_visibility';
|
||||
// phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.SchemaChange, WordPress.DB.PreparedSQL.InterpolatedNotPrepared
|
||||
$table = $wpdb->prefix . 'prv_ai_visibility';
|
||||
// phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.SchemaChange, WordPress.DB.PreparedSQL.InterpolatedNotPrepared, WordPress.DB.DirectDatabaseQuery.NoCaching
|
||||
$wpdb->query( "DROP TABLE IF EXISTS {$table}" );
|
||||
|
||||
/* ── 2. Delete all pgm_ prefixed options ──────────────────────────── */
|
||||
/* ── 2. Delete all prv_ prefixed options ──────────────────────────── */
|
||||
|
||||
// phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery
|
||||
// phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching
|
||||
$wpdb->query(
|
||||
"DELETE FROM {$wpdb->options} WHERE option_name LIKE 'pgm\_%'"
|
||||
"DELETE FROM {$wpdb->options} WHERE option_name LIKE 'prv\_%'"
|
||||
);
|
||||
|
||||
/* ── 3. Clear any remaining scheduled cron events ─────────────────── */
|
||||
|
||||
wp_clear_scheduled_hook( 'pgm_weekly_probe' );
|
||||
wp_clear_scheduled_hook( 'prv_weekly_probe' );
|
||||
|
||||
Reference in New Issue
Block a user