Author | Replies |
---|---|
sitesurety | # Posted on November 8, 2014 at 3:30 pm |
ok, i’ve gone through the filter code and it will include any match.. I’ve reversed the loop so that it will do an ‘and’ match (1 or more must be true to be added). Any chance this could be added in a future release as a variable to the function? i.e. Exclusive filter function filterExclusive($args, $case_sensitive = FALSE) { if (!is_array($args)) { // extract the arguments foreach ($this->_items as $set_item) { foreach ($args as $arg) { $m = array(); preg_match ( “/^([\w\-]+)(\#?\=|\#?[\>\<\$\^\*\~\!]=|\#?\>|\#?\<)(.*)$/” , $arg, $m ); if ($m && count($m) == 4) { if ($case_sensitive) { $f = $set_item->f($fn); $fields = array(); $fields[] = $f; foreach ($fields as $f) { if ($include) { $nv = 0; if ($case_sensitive) { if (is_numeric($fv)) { if (is_numeric($val)) { // Check each item for match individually switch ($op) { } // endif $include } // endforeach } } if ($include) { } } |
MasterPress 1.3.10 is now available
9th November 2023
MasterPress 1.3.10 is a feature and bugfix release. Workaround for fatal error introduced by changes to WordPress’ wpdb class in WordPress 6.4. Added actions to MPC files upload_field & WF image save_image functions.