From f383c3a4325bc173b6f9676274bc19694be6f9c0 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Fri, 05 Jun 2026 16:49:44 +0000
Subject: [PATCH] =Modified the Feed Fields config in Registrar, to utilize the built in functionality there
---
files/fileManagement.php | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/files/fileManagement.php b/files/fileManagement.php
index 9b20763..a5aedf1 100644
--- a/files/fileManagement.php
+++ b/files/fileManagement.php
@@ -365,8 +365,8 @@
*/
function altr_get_artist_top_styles($post_id)
{
- if (!function_exists('JVBase\\meta\\MetaManager')) {
- // Fallback if MetaManager not available
+ if (!function_exists('JVBase\\meta\\Meta')) {
+ // Fallback if Meta not available
$styles = wp_get_post_terms($post_id, BASE . 'style', array('fields' => 'names'));
if (is_wp_error($styles) || empty($styles)) {
return 'custom-tattoos';
@@ -380,8 +380,8 @@
}
// Get top highlighted styles first
- $meta = new JVBase\meta\MetaManager($post_id, 'post');
- $highlighted = explode(',', $meta->getValue('top_style')) ?: array();
+ $meta = new JVBase\meta\Meta($post_id, 'post');
+ $highlighted = explode(',', $meta->get('top_style')) ?: array();
if (!empty($highlighted)) {
$style_names = array();
--
Gitblit v1.10.0