prefix), not the network base prefix. * * @var bool */ protected $global = false; /** * Singleton instance. * * @var Table|null */ protected static $instance = null; /** * Get the singleton instance. * * @return Table */ public static function instance(): self { if ( null === self::$instance ) { self::$instance = new self(); } return self::$instance; } /** * Create or upgrade the table with the phantom-version guard. * * If the db_version_key option exists but the physical table was manually * dropped, BerlinDB's needs_upgrade() would return false and skip install. * Clearing the option first forces a fresh install on the next run. * SILENT per Clarification Q1 — no error_log, no admin notice, no transient. * * @return void */ public function maybe_upgrade(): void { if ( ! $this->exists() ) { delete_option( $this->db_version_key ); } parent::maybe_upgrade(); } }