From 4833ba6ec3cc65d6261538aa912881e33528b869 Mon Sep 17 00:00:00 2001 From: Eclipse Srl Date: Wed, 2 Oct 2019 10:09:20 +0200 Subject: [PATCH] Added filter for Post status inside post queries --- README.txt | 5 ++++- includes/Blog/Blog.php | 7 +++++++ includes/Query/Posts.php | 30 +++++++++++++++++++++++++++++- udesly-adapter-plugin.php | 4 ++-- 4 files changed, 42 insertions(+), 4 deletions(-) diff --git a/README.txt b/README.txt index abea102..b7a6fe7 100644 --- a/README.txt +++ b/README.txt @@ -4,7 +4,7 @@ Donate link: https://www.udesly.com/ Tags: webflow to wordpress, editor, page builder, layout design, udesly, webflow Requires at least: 5.0 Tested up to: 5.2.3 -Stable tag: 2.0.0.32 +Stable tag: 2.0.0.33 License: GPLv3 or later License URI: https://www.udesly.com/terms-conditions-of-use/#udesly-wordpress-plugin Requires PHP: 5.6.0 @@ -80,6 +80,9 @@ That's all! Absolutely! You can use the Udesly Adapter to create more than one website. == Changelog == += 2.0.0.33 = +* Added filter for Post status inside post queries + = 2.0.0.32 = * Added filter for password status inside post queries diff --git a/includes/Blog/Blog.php b/includes/Blog/Blog.php index a211eda..59d1c3b 100644 --- a/includes/Blog/Blog.php +++ b/includes/Blog/Blog.php @@ -35,6 +35,13 @@ public function public_hooks() add_filter( 'posts_where', array($this, "password_post_filter") ); } + add_filter( 'private_title_format', function( $format ) { + return '%s'; + } ); + add_filter( 'protected_title_format', function( $format ) { + return '%s'; + } ); + } public function filter_archive_description($description) { diff --git a/includes/Query/Posts.php b/includes/Query/Posts.php index 675e7c0..b211006 100644 --- a/includes/Query/Posts.php +++ b/includes/Query/Posts.php @@ -231,6 +231,10 @@ public static function query_configuration($post) [v-cloak] { display: none; } + #udesly-query-wrapper { + height: 100%; + padding-bottom: 90px; + }