feat: field validation, term resolution, post guard and revision points
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01At3V6SjwbMe6eMzVGW3Hs7
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
if (! class_exists('WP_Term')) {
|
||||
class WP_Term
|
||||
{
|
||||
public $term_id = 0;
|
||||
public $name = '';
|
||||
public $slug = '';
|
||||
public $taxonomy = '';
|
||||
|
||||
/** @param array<string, mixed> $fields */
|
||||
public function __construct(array $fields = [])
|
||||
{
|
||||
foreach ($fields as $key => $value) {
|
||||
$this->{$key} = $value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user