mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-14 04:06:36 +09:00
- fixed posts query in the User Profile;
This commit is contained in:
@@ -1432,7 +1432,7 @@ if ( ! class_exists( 'um\core\Access' ) ) {
|
||||
* @param \WP_Query $query
|
||||
*/
|
||||
function exclude_posts( $query ) {
|
||||
if ( $query->is_main_query() ) {
|
||||
if ( $query->is_main_query() || ! empty( $query->query_vars['um_main_query'] ) ) {
|
||||
$force = is_search() || is_admin();
|
||||
$exclude_posts = $this->exclude_posts_array( $force );
|
||||
if ( ! empty( $exclude_posts ) ) {
|
||||
|
||||
Reference in New Issue
Block a user