Skip to content

Commit

Permalink
Limita quantidade e item de busca de indicacao de usuário para ficar …
Browse files Browse the repository at this point in the history
…mais rápido e preciso
  • Loading branch information
r-guimaraes committed Mar 1, 2018
1 parent c6aeac2 commit 2a5f339
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ function show_people_to_recommend() {

$users = new WP_User_Query(array(
'search' => '*' . esc_attr( $_POST['string'] ) . '*',
'search_columns' => array( 'user_nicename', 'user_email' ),
'number' => -1,
'search_columns' => array('user_nicename'),
'number' => 50,
'orderby' => 'display_name',
) );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<h2 class="titulo-quantidade text-uppercase"><i class="fa fa-share" aria-hidden="true"></i> Indicar Post</h2>
<form>
<div class="form-group">
<input id="input-recommend-post" name="recommend-post" placeholder="Busque por e-mail ou nome de usuário" class="form-control" value="" data-post-id="<?php echo get_the_ID(); ?>"/>
<input id="input-recommend-post" name="recommend-post" placeholder="Informe o nome do usuário" class="form-control" value="" data-post-id="<?php echo get_the_ID(); ?>"/>
</div>
</form>
</div>
Expand Down

0 comments on commit 2a5f339

Please sign in to comment.