fix: restore missing return + closing braces in sanitize_review_status

This commit is contained in:
peptiderepo
2026-04-24 10:21:20 +07:00
parent ba4e11192f
commit 2195b449b2

View File

@@ -296,4 +296,6 @@ class PR_Core_Peptide_CPT {
*/
public static function sanitize_review_status( $value ): string {
$value = sanitize_text_field( (string) $value );
return in_array( $value, self::REVIEW_STATUSES, true ) ? $value : 'draft';
}
}