chore(phase2b): cleanup — repo IA, skip _input raw-store, upgrade stub test (#183, v0.32.1)

Closes 3 Phase 2b P2s. QA APPROVE f3549e8; CI green (phpcs+phpunit VPS-verified).

Agent-Session: prab-phase2b-cleanup-merge
This commit is contained in:
peptiderepo
2026-06-24 18:00:04 +07:00
committed by GitHub
parent 6dd23351cb
commit 81aba2ac23
5 changed files with 64 additions and 19 deletions

View File

@@ -109,7 +109,16 @@ class PRAutoBlogger_Pipeline_Settings_Save_Handler {
$fields = PRAutoBlogger_Pipeline_Settings_Option_Fields::get_fields_for_context( $context );
foreach ( $fields as $field ) {
$id = (string) $field['id'];
$id = (string) $field['id'];
// Virtual display fields are not persisted directly — they are parsed
// into a canonical option by a dedicated handler. Skip them here.
// prautoblogger_category_tiers_input is the textarea that parse_and_save_category_tiers()
// converts to the prautoblogger_category_tiers serialised array.
if ( str_ends_with( $id, '_input' ) ) {
continue;
}
$raw = isset( $_POST[ $id ] ) ? wp_unslash( $_POST[ $id ] ) : ( $field['default'] ?? '' );
// For checkboxes the POST value is an array (or absent = empty array).
if ( 'checkboxes' === ( $field['type'] ?? '' ) ) {