From 95fe19bc1c700e3cf2bbc6f13ef19ce500061d61 Mon Sep 17 00:00:00 2001 From: champsupertramp Date: Fri, 19 Feb 2016 23:20:46 +0800 Subject: [PATCH] Fix search form pagination visibility --- core/um-actions-members.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/um-actions-members.php b/core/um-actions-members.php index f092bcc5..ab162013 100644 --- a/core/um-actions-members.php +++ b/core/um-actions-members.php @@ -122,6 +122,10 @@ global $ultimatemember; extract( $args ); + + if ( isset( $args['search'] ) && $args['search'] == 1 && isset( $args['must_search'] ) && $args['must_search'] == 1 && !isset( $_REQUEST['um_search'] ) ) + return; + if ( um_members('total_pages') > 1 ) { // needs pagination ?>