Plugin Directory

Changeset 2587900


Ignore:
Timestamp:
08/24/2021 03:31:55 PM (5 years ago)
Author:
crisworth
Message:

Feature update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mondoplayer/trunk/mondoplayer.php

    r2587866 r2587900  
    55    Description: Video Content Curation Plugin - automatically curate and share videos. Boost engagement on your website and in social media with compelling video.
    66    Author: MondoTag
    7     Version: 1.0.317
     7    Version: 1.0.319
    88    Tested up to: 5.7.2
    99    License: GPLv2 or later
     
    235235            return $where;
    236236        }
     237        $category_id = get_query_var('cat', 0);
     238        $mondoplayer_mastermind = get_term_meta($category_id, 'mondoplayer_mastermind', true);
     239        error_log("posts_where: $category_id, " . $mondoplayer_mastermind['mastermind']);
     240        if (isset($mondoplayer_mastermind['mastermind']) && $mondoplayer_mastermind['mastermind'] == 1) {
     241            return $where;
     242        }
    237243
    238244        if ( (! is_admin() && $query->is_main_query()) || (isset( $_REQUEST['action']) &&  $_REQUEST['action'] == "get_vlog") ) {
     
    266272        } else if (! is_admin() && $category_id > 0 && $wp_query->is_main_query()) {
    267273            $mondoplayer_mastermind = get_term_meta($category_id, 'mondoplayer_mastermind', true);
    268             if (isset($mondoplayer_mastermind) && $mondoplayer_mastermind == 1) {
     274            if (isset($mondoplayer_mastermind['mastermind']) && $mondoplayer_mastermind['mastermind'] == 1) {
    269275                return $orderby;
    270276            }
Note: See TracChangeset for help on using the changeset viewer.