Wrongly used get_users in class-page-settings.php is causing gateway timeout
-
Hi,
I think the function “get_users” is wrongly used in class-page-settings.php (#L342).
At least in my live environment with thousands of user this leads to an inaccessible backwpup settings page (gateway timeout).You are calling the function with [‘who’ => ‘administrators’].
The correct use would be [‘role’ => ‘administrator’].
The ‘who’ argument seems to be working only with ‘authors’:
https://codex.wordpress.org/Class_Reference/WP_User_Query#Who_Parameterbest,
d.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Wrongly used get_users in class-page-settings.php is causing gateway timeout’ is closed to new replies.