diff --git a/CHANGELOG.md b/CHANGELOG.md index 353f2b7..c52bb19 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.13.5] - 2026-04-24 + +### Fixed +- Cost column in Posts list was always showing $0.00: a PHP `// phpcs:ignore` comment was embedded inside the SQL string literal, causing a MariaDB syntax error on every query. Moved comment above the `prepare()` call. +- Peptide Topics column header in Posts list was being squeezed to near-zero width by the fixed-width PRAB columns. Added `min-width: 80px` to `.column-taxonomy-peptide_topic`. + ## [0.13.4] - 2026-04-24 ### Fixed diff --git a/includes/admin/class-post-list-columns.php b/includes/admin/class-post-list-columns.php index 5d96b6a..4d563d7 100644 --- a/includes/admin/class-post-list-columns.php +++ b/includes/admin/class-post-list-columns.php @@ -115,6 +115,7 @@ class PRAutoBlogger_Post_List_Columns { . '.column-prab_writing_model{width:100px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}' . '.column-prab_image_model{width:100px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}' . '.column-prab_cost{width:55px;white-space:nowrap;overflow:visible}' + . '.column-taxonomy-peptide_topic{min-width:80px}' . '.prab-cost-wrap{position:relative;display:inline-block}' . '.prab-cost-trigger{font-size:12px;color:#2271b1;text-decoration:underline;cursor:pointer}' . '.prab-cost-popover{display:none;position:absolute;right:0;top:100%;z-index:9999;' @@ -182,7 +183,8 @@ class PRAutoBlogger_Post_List_Columns { // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching $rows = $wpdb->get_results( $wpdb->prepare( - "SELECT stage, model, prompt_tokens, completion_tokens, estimated_cost // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared + // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared + "SELECT stage, model, prompt_tokens, completion_tokens, estimated_cost FROM {$table} WHERE post_id = %d ORDER BY id ASC", $post_id ), diff --git a/prautoblogger.php b/prautoblogger.php index e5ad376..d4c4f77 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.13.4 + * Version: 0.13.5 * 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.13.4' ); +define( 'PRAUTOBLOGGER_VERSION', '0.13.5' ); define( 'PRAUTOBLOGGER_DB_VERSION', '1.1.0' ); define( 'PRAUTOBLOGGER_PLUGIN_FILE', __FILE__ ); define( 'PRAUTOBLOGGER_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );