v1.5.26 — Credits bug fix + PHP 8.1 compatibility
Bug Fixes
Credits accumulating instead of decreasing
BCG_AI_Manager::refund_credits() now checks test mode before executing, matching the guard already present in deduct_credits(). Previously, when test mode was enabled, deductions were silently skipped (no-op) but refunds still wrote to the database — causing the credit balance to increase on every failed AI generation call (e.g. Gemini geo-restriction errors in the UK).
PHP 8.1 Fatal Error on activation
Replaced all true|\WP_Error return type declarations with bool|\WP_Error across five files. The standalone true type was introduced in PHP 8.2 and caused a fatal error on PHP 8.1 hosts, preventing the plugin from loading.