fix: resolve PR_Core_Settings_Renderer undefined constant fatal (v0.7.1)

All self::CONST refs in renderer pointed at constants that only exist on
PR_Core_Settings. PR #22 split the renderer into its own class but omitted
the constants. Promote 6 option-key private consts to public on
PR_Core_Settings; update renderer to reference them as PR_Core_Settings::*.

Closes #(no issue). Regression introduced in v0.7.0 (#22).

Agent-Session: 2026-06-17-prcore-500fix
This commit is contained in:
peptiderepo
2026-06-17 05:55:35 +00:00
parent 6a8c43496e
commit ad2b1d9a25
5 changed files with 229 additions and 20 deletions

View File

@@ -23,22 +23,22 @@ class PR_Core_Settings {
public const OPTION_GROUP = 'pr_core_settings';
/** @var string Option key: enable/disable related articles. */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort
private const RELATED_ENABLED = 'pr_core_related_posts_enabled';
public const RELATED_ENABLED = 'pr_core_related_posts_enabled';
/** @var string Option key: related articles limit (1-6). */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort
private const RELATED_LIMIT = 'pr_core_related_posts_limit';
public const RELATED_LIMIT = 'pr_core_related_posts_limit';
/** @var string Option key: WP-cron scan cadence. */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort
private const SCAN_CADENCE = 'pr_core_scan_cadence';
public const SCAN_CADENCE = 'pr_core_scan_cadence';
/** @var string Option key: default staleness threshold in days. */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort
private const DEFAULT_THRESHOLD = 'pr_core_default_threshold';
public const DEFAULT_THRESHOLD = 'pr_core_default_threshold';
/** @var string Option key: high-velocity staleness threshold in days. */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort
private const HIGH_VELOCITY_THRESHOLD = 'pr_core_high_velocity_threshold';
public const HIGH_VELOCITY_THRESHOLD = 'pr_core_high_velocity_threshold';
/** @var string Option key: comma-separated notification email list. */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort
private const VERIFICATION_EMAIL = 'pr_core_verification_email';
public const VERIFICATION_EMAIL = 'pr_core_verification_email';
/**
* Register the settings submenu page under Peptides.