From c1d22fd2759846237a64c51eb106037d6a1f61e6 Mon Sep 17 00:00:00 2001 From: peptiderepo <273788462+peptiderepo@users.noreply.github.com> Date: Fri, 24 Apr 2026 11:08:23 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20Opik=20autoloader=20gap=20=E2=80=94=20se?= =?UTF-8?q?rvices/opik/=20not=20scanned=20(v0.12.3)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit class-autoloader.php listed services/ but not services/opik/. All four Opik classes live in that subdirectory. Composer classmap covered it (tests passed); WP runtime autoloader would fatal in production on first Opik class reference. Adds services/opik/ to the scan list. Bumps to v0.12.3. --- CHANGELOG.md | 6 ++++++ includes/class-autoloader.php | 1 + prautoblogger.php | 4 ++-- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9fd4dfd..ef7f388 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to PRAutoBlogger will be documented in this file. Format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project uses [Semantic Versioning](https://semver.org/). +## [0.12.3] — 2026-04-24 + +### Fixed +- **Opik autoloader gap** — `class-autoloader.php` listed `services/` as a scan directory but not `services/opik/`, where all four Opik classes live (`Opik_Client`, `Opik_Trace_Context`, `Opik_Span_Queue`, `Opik_Dispatcher`). Composer's classmap (used in PHPUnit) covers `includes/` recursively so tests passed, but the WordPress runtime autoloader would fatal on first Opik class reference in production. Added `services/opik/` to the scan list. + + ## [0.12.2] — 2026-04-24 ### Fixed diff --git a/includes/class-autoloader.php b/includes/class-autoloader.php index 066f128..512554e 100755 --- a/includes/class-autoloader.php +++ b/includes/class-autoloader.php @@ -30,6 +30,7 @@ class PRAutoBlogger_Autoloader { 'models/', 'frontend/', 'services/', + 'services/opik/', 'ajax/', ); diff --git a/prautoblogger.php b/prautoblogger.php index e8b82bc..b6f2818 100644 --- a/prautoblogger.php +++ b/prautoblogger.php @@ -9,7 +9,7 @@ * Plugin Name: PRAutoBlogger * Plugin URI: https://peptiderepo.com/prautoblogger * Description: Monitors social media for trending topics, generates SEO-friendly blog posts using AI, and publishes them on a daily schedule with full cost tracking and self-improvement metrics. - * Version: 0.12.2 + * Version: 0.12.3 * Requires at least: 6.0 * Requires PHP: 7.4 * Author: PeptideRepo @@ -35,7 +35,7 @@ if ( ! defined( 'ABSPATH' ) ) { | Defined here so every file in the plugin can reference paths, versions, | and limits without magic strings. */ -define( 'PRAUTOBLOGGER_VERSION', '0.12.2' ); +define( 'PRAUTOBLOGGER_VERSION', '0.12.3' ); define( 'PRAUTOBLOGGER_DB_VERSION', '1.1.0' ); define( 'PRAUTOBLOGGER_PLUGIN_FILE', __FILE__ ); define( 'PRAUTOBLOGGER_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );