Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #49641


Ignore:
Timestamp:
03/13/2020 05:13:41 PM (5 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #49641

    • Property Keywords needs-docs added; needs-dev-note removed
    • Property Component changed from Query to Users
  • Ticket #49641 – Description

    initial v1  
    11Because I didn't realize that doing this query:
    2 
     2{{{
    33        $all_user_ids = get_users([
    44            'fields' => 'id',
     
    77            'meta_value' => $dynamic_value_from_frontend
    88        ]);
    9 
     9}}}
    1010Given the credibility, history & robustness of `get_users`, which entered under the hood of "that thing just works, don't doubt it", if {{{$dynamic_value_from_frontned}}} were to be just a mere`''`, instead of giving me an empty list of no users, **the query would return a list of all users.** What happens when you rely on this list for mission-critical things? The worst.
    1111