Skip to content

Commit

Permalink
feat: added suppress_filters parameter in get posts
Browse files Browse the repository at this point in the history
  • Loading branch information
ElisaLosito committed Jan 25, 2021
1 parent 600dba7 commit 0fb37c7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Aeria/Aeria.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
*/
class Aeria extends Container
{
const VERSION = '3.2.15';
const VERSION = '3.2.16';

/**
* Constructs the Aeria container.
Expand Down
2 changes: 2 additions & 0 deletions Aeria/Query/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand All @@ -235,6 +236,7 @@ public function getPosts($parameters)
'orderby' => $orderBy,
'order' => $order,
'numberposts' => $numberPosts,
'suppress_filters' => $suppress_filters,
];

if (isset($taxonomy) || isset($taxonomyTerms)) {
Expand Down
2 changes: 1 addition & 1 deletion aeria.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aeria",
"version": "3.2.15",
"version": "3.2.16",
"description": "Aeria",
"scripts": {
"dev": "webpack --watch --mode development",
Expand Down

0 comments on commit 0fb37c7

Please sign in to comment.