From 0fb37c79f0c0477bbcf33debff1b42c5fcf81a4a Mon Sep 17 00:00:00 2001 From: Elisa Losito Date: Mon, 25 Jan 2021 12:24:13 +0100 Subject: [PATCH] feat: added suppress_filters parameter in get posts --- Aeria/Aeria.php | 2 +- Aeria/Query/Query.php | 2 ++ aeria.php | 2 +- package.json | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Aeria/Aeria.php b/Aeria/Aeria.php index 3f6bffd..f115184 100755 --- a/Aeria/Aeria.php +++ b/Aeria/Aeria.php @@ -31,7 +31,7 @@ */ class Aeria extends Container { - const VERSION = '3.2.15'; + const VERSION = '3.2.16'; /** * Constructs the Aeria container. diff --git a/Aeria/Query/Query.php b/Aeria/Query/Query.php index 656a4f9..5987f0f 100644 --- a/Aeria/Query/Query.php +++ b/Aeria/Query/Query.php @@ -211,6 +211,7 @@ public function getPosts($parameters) $orderBy = (isset($parameters['orderby'])) ? $parameters['orderby'] : null; $order = (isset($parameters['order'])) ? $parameters['order'] : null; $numberPosts = (isset($parameters['numberposts'])) ? $parameters['numberposts'] : -1; + $suppress_filters = (isset($parameters['suppress_filters']) && $parameters['suppress_filters'] == "false") ? false : true; switch ($sender) { case 'SelectOptions': @@ -235,6 +236,7 @@ public function getPosts($parameters) 'orderby' => $orderBy, 'order' => $order, 'numberposts' => $numberPosts, + 'suppress_filters' => $suppress_filters, ]; if (isset($taxonomy) || isset($taxonomyTerms)) { diff --git a/aeria.php b/aeria.php index a2398e6..faa7414 100755 --- a/aeria.php +++ b/aeria.php @@ -10,7 +10,7 @@ * Plugin Name: Aeria * Plugin URI: https://github.com/caffeinalab/aeria * Description: Aeria is a modular, lightweight, fast WordPress Application development kit. - * Version: 3.2.15 + * Version: 3.2.16 * Author: Caffeina * Author URI: https://caffeina.com * Text Domain: aeria diff --git a/package.json b/package.json index 990c595..cd6ec62 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aeria", - "version": "3.2.15", + "version": "3.2.16", "description": "Aeria", "scripts": { "dev": "webpack --watch --mode development",