Jake Vanderwerf
2026-05-12 7213ae7358c86aa3ca7e416a22379b42ed0f4eac
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();