Jake Vanderwerf
117 mins ago 3baf3d2545ba6ece6b74a64c0def59bd0774cf54
inc/registrar/config/seo/Resolver.php
@@ -209,6 +209,12 @@
         if (!$imgID || $imgID === '') {
            return null;
         }
         return self::imgIDToSchema($imgID);
      }
      public static function imgIDToSchema(int $imgID):ImageObject|null
      {
         $img = wp_get_attachment_image_src($imgID,'full');
         if (!$img) {
            return null;
@@ -223,12 +229,14 @@
               $imageObject = new ImageObject();
               $imageObject->setContentUrl($img[0]);
               $width = new QuantitativeValue();
               $width->showID(false);
               $width->setValue($img[1]);
               $width->setUnitText('px');
               $imageObject->setWidth($width);
               $height = new QuantitativeValue();
               $height->showID(false);
               $height->setValue($img[2]);
               $width->setUnitText('px');
               $height->setUnitText('px');
               $imageObject->setHeight($height);
               $image_path = get_attached_file($imgID);
@@ -249,7 +257,6 @@
               return $imageObject;
            }
         );
      }
      public static function resolveCreator(string $type, mixed $value, mixed $schema, ?Meta $meta):mixed