Skip to content

Commit 68e616e

Browse files
Merge pull request #13 from spencerm/patch-1
Optimize query to use offset instead of paged
2 parents e96a625 + b03ae0b commit 68e616e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

serbian-transliteration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ function rstr_render_network_settings() {
208208
do {
209209
$batch = get_sites(array(
210210
'number' => $number,
211-
'paged' => $paged,
211+
'offset' => ($paged - 1) * $number,
212212
'fields' => 'all',
213213
));
214214
if (empty($batch)) {
@@ -443,4 +443,4 @@ function get_rstr_option($name = false, $default = null)
443443
* Now go. Code boldly, deploy confidently—and maybe, just maybe,
444444
* reward yourself with those cookies I promised. 🍪 You’ve earned them.
445445
*************************************************************************************************************************/
446-
446+

0 commit comments

Comments
 (0)