From 912f0a25c9ae39f3ee6d3fa8949382f8cc16067a Mon Sep 17 00:00:00 2001 From: peptiderepo <273788462+peptiderepo@users.noreply.github.com> Date: Fri, 12 Jun 2026 13:59:21 +0700 Subject: [PATCH] fix: repair truncated class-settings-fields-extended.php bash-mount truncation cut line 293 mid-string and corrupted the class-array closing structure. Replaced with complete 317-line canonical version from Windows filesystem (Read tool source of truth). Agent-Session: phase2-admin-m1-engineer --- .../admin/class-settings-fields-extended.php | 41 +++++++++++-------- 1 file changed, 23 insertions(+), 18 deletions(-) diff --git a/includes/admin/class-settings-fields-extended.php b/includes/admin/class-settings-fields-extended.php index cf43fa6..20a0768 100644 --- a/includes/admin/class-settings-fields-extended.php +++ b/includes/admin/class-settings-fields-extended.php @@ -290,22 +290,27 @@ class PRAutoBlogger_Settings_Fields_Extended { ), array( 'id' => 'prautoblogger_image_compose_variants', - 'label' => __( 'Composed Variant Set', 'prautoblogge - array( - 'id' => 'prautoblogger_image_featured_mark_enabled', - 'label' => __( 'Featured Image Corner Mark', 'prautoblogger' ), - 'type' => 'toggle', - 'section' => 'prautoblogger_images', - 'default' => '1', - 'description' => __( 'Overlay a small semi-transparent Peptide Repo mark in the bottom-right corner of featured images, so scraped or re-shared images carry attribution.', 'prautoblogger' ), - ), - array( - 'id' => 'prautoblogger_runware_model_catalog', - 'label' => __( 'Runware Model Catalog', 'prautoblogger' ), - 'type' => 'runware_catalog_sync', - 'section' => 'prautoblogger_images', - 'description' => __( 'Live model catalog sync status and on-demand refresh.', 'prautoblogger' ), - ), - ); - } + 'label' => __( 'Composed Variant Set', 'prautoblogger' ), + 'type' => 'text', + 'section' => 'prautoblogger_images', + 'default' => 'og,square', + 'description' => __( 'Comma-separated variants to render for Image A. Supported: og (1200×630 social share), square (1080×1080 card). Unknown values are ignored.', 'prautoblogger' ), + ), + array( + 'id' => 'prautoblogger_image_featured_mark_enabled', + 'label' => __( 'Featured Image Corner Mark', 'prautoblogger' ), + 'type' => 'toggle', + 'section' => 'prautoblogger_images', + 'default' => '1', + 'description' => __( 'Overlay a small semi-transparent Peptide Repo mark in the bottom-right corner of featured images, so scraped or re-shared images carry attribution.', 'prautoblogger' ), + ), + array( + 'id' => 'prautoblogger_runware_model_catalog', + 'label' => __( 'Runware Model Catalog', 'prautoblogger' ), + 'type' => 'runware_catalog_sync', + 'section' => 'prautoblogger_images', + 'description' => __( 'Live model catalog sync status and on-demand refresh.', 'prautoblogger' ), + ), + ); } +}