Changes between Initial Version and Version 1 of Ticket #49641
- Timestamp:
- 03/13/2020 05:13:41 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #49641
- Property Keywords needs-docs added; needs-dev-note removed
-
Property
Component
changed from
Query
toUsers
-
Ticket #49641 – Description
initial v1 1 1 Because I didn't realize that doing this query: 2 2 {{{ 3 3 $all_user_ids = get_users([ 4 4 'fields' => 'id', … … 7 7 'meta_value' => $dynamic_value_from_frontend 8 8 ]); 9 9 }}} 10 10 Given 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. 11 11