Jake Vanderwerf
2026-02-04 2127b1bdd73ecd2423e443992da4b442f5a3c1a3
inc/managers/queue/executors/ContentExecutor.php
@@ -2,7 +2,7 @@
namespace JVBase\managers\queue\executors;
use JVBase\managers\queue\{Executor, Operation, Progress, Result, Storage};
use JVBase\meta\MetaManager;
use JVBase\meta\Meta;
use JVBase\utility\Features;
use Exception;
@@ -215,8 +215,9 @@
         return true;
      }
      $meta = new MetaManager($postId, 'post');
      return $meta->setAll($allowedFields);
      $meta = Meta::forPost($postId);
      $meta->setAll($allowedFields);
      return true;
   }
   // ─────────────────────────────────────────────────────────────
@@ -315,9 +316,9 @@
      $lastKey = array_key_last($posts);
      foreach ($posts as $index => $post) {
         $meta = new MetaManager($post->ID, 'post');
         $meta = Meta::forPost($post->ID);
         if ($index === 0) {
            $meta->updateValue('timeline', '', false);
            $meta->set('timeline', '', false);
            $previousPost = $post;
            continue; // Parent has no timeline
         }
@@ -328,7 +329,7 @@
            if ($timeline) {
               $termId = $this->getOrCreateTerm($timeline, 'timeline');
               if ($termId) {
                  $success = $meta->updateValue('timeline', $termId, false);
                  $success = $meta->set('timeline', $termId, false);
               }
            }
         }
@@ -443,7 +444,7 @@
   protected function checkSharedFields(array $fields): void
   {
      foreach ($fields as $parentID => $shared) {
         $meta = new MetaManager($parentID, 'post');
         $meta = Meta::forPost($parentID);
         $values = $meta->getAll($shared);
         $children = get_children([
@@ -457,7 +458,7 @@
         }
         foreach ($children as $child) {
            $childMeta = new MetaManager($child, 'post');
            $childMeta = Meta::forPost($child);
            $result = $childMeta->setAll($values, false);
         }
      }