Jake Vanderwerf
2026-01-19 0113d2e9c9ff34a6ffb10707cc76d34b67a0c367
inc/ui/CRUDSkeleton.php
@@ -1113,8 +1113,8 @@
      ob_start();
      ?>
      <div class="item-select">
         <input type="checkbox" class="select-item">
         <label class="select-item-label">
         <input type="checkbox" class="select-item" name="select-item" id="item">
         <label class="select-item-label" for="item">
            <span class="screen-reader-text">Select this <?= $this->singular ?></span>
         </label>
      </div>
@@ -1262,6 +1262,10 @@
                  <?php
                  if (in_array('edit', $this->caps)) {
                     echo $makeThisDetailed ? '<details><summary class="row btw">See Value</summary>' : '';
                     if (in_array($config['type'], ['selector', 'taxonomy', 'post'])) {
                        $config['autocomplete'] = true;
                     }
                     echo $this->meta->render('form', $name, $config);
                     echo $makeThisDetailed ? '</details>' : '';
                  } else {
@@ -1340,6 +1344,11 @@
               ?>
               <td class="field show-<?= esc_attr($name) ?>" data-field="<?= esc_attr($name) ?>" data-field-type="<?=$config['type']?>"<?=(in_array($name, $this->stuck)) ? ' data-stuck':''?>>
                  <?= $makeThisDetailed ? '<details><summary class="row btw">See Value</summary>' : '' ?>
                  <?php
                  if (in_array($config['type'], ['selector', 'taxonomy', 'post'])) {
                     $config['autocomplete'] = true;
                  }
                  ?>
                  <?php $this->meta->render('form', $name, $config); ?>
                  <?= $makeThisDetailed ? '</details>' : '' ?>
               </td>
@@ -1472,10 +1481,10 @@
   protected function renderStatusRadios(): string {
      ob_start();
      ?>
      <div class="radio-options status-options row">
      <div class="radio-options status-options row" data-field="post_status" data-field-type="radio">
         <?php foreach ($this->statuses as $status):
            if ($status === 'all') continue;
            if (!in_array($status, $this->allowedStatuses)) continue;
            if (!array_key_exists($status, $this->allowedStatuses)) continue;
            $config = $this->allowedStatuses[$status];
            ?>
@@ -1488,6 +1497,7 @@
               <span class="screen-reader-text"><?= esc_html($config['label']) ?></span>
            </label>
         <?php endforeach; ?>
         <span class="validation-message" hidden role="alert"></span>
      </div>
      <?php
      return ob_get_clean();
@@ -1550,7 +1560,7 @@
         <input type="hidden" name="form-id" value="<?=uniqid('new-')?>" />
         <input type="hidden" name="content" value="<?=$this->dataType?>" />
         <div class="fields">
            <div class="field-group radio-options row">
            <div class="field-group radio-options row" data-field="post_status" data-field-type="radio">
               <span>Status:</span>
               <?php
               $this->getApplicableStatuses('edit');