Skip to content

Commit

Permalink
fix: select only required fields in get_users (#184)
Browse files Browse the repository at this point in the history
* fix: select only required fields in `get_users`

* chore(l10n): update pot file

---------

Co-authored-by: GitHub Actions <[email protected]>
  • Loading branch information
fdalcin and actions-user authored Jul 2, 2024
1 parent df94395 commit 6db9177
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions languages/pressbooks-multi-institution.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# This file is distributed under the GPL v3 or later.
msgid ""
msgstr ""
"Project-Id-Version: Pressbooks Multi Institution 0.1.0\n"
"Project-Id-Version: Pressbooks Shared Network 1.0.0\n"
"Report-Msgid-Bugs-To: https://github.com/pressbooks/pressbooks-multi-institution/issues\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2024-05-28T00:33:38+00:00\n"
"POT-Creation-Date: 2024-07-02T21:15:38+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.10.0\n"
"X-Domain: pressbooks-multi-institution\n"
Expand Down
1 change: 1 addition & 0 deletions src/Controllers/InstitutionsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ protected function fetchUsers(?Institution $institution): array

return get_users([
'blog_id' => 0, // all users from the network
'fields' => ['ID', 'display_name', 'user_email'],
'orderby' => [
'display_name',
'email',
Expand Down

0 comments on commit 6db9177

Please sign in to comment.