wp-includes/class-wp-comment-query.php 1 location
|
@@ 648-654 (lines=7) @@
|
645 |
|
$number = absint( $this->query_vars['number'] ); |
646 |
|
$offset = absint( $this->query_vars['offset'] ); |
647 |
|
|
648 |
|
if ( ! empty( $number ) ) { |
649 |
|
if ( $offset ) { |
650 |
|
$limits = 'LIMIT ' . $offset . ',' . $number; |
651 |
|
} else { |
652 |
|
$limits = 'LIMIT ' . $number; |
653 |
|
} |
654 |
|
} |
655 |
|
|
656 |
|
if ( $this->query_vars['count'] ) { |
657 |
|
$fields = 'COUNT(*)'; |
wp-includes/class-wp-network-query.php 1 location
|
@@ 348-354 (lines=7) @@
|
345 |
|
$number = absint( $this->query_vars['number'] ); |
346 |
|
$offset = absint( $this->query_vars['offset'] ); |
347 |
|
|
348 |
|
if ( ! empty( $number ) ) { |
349 |
|
if ( $offset ) { |
350 |
|
$limits = 'LIMIT ' . $offset . ',' . $number; |
351 |
|
} else { |
352 |
|
$limits = 'LIMIT ' . $number; |
353 |
|
} |
354 |
|
} |
355 |
|
|
356 |
|
if ( $this->query_vars['count'] ) { |
357 |
|
$fields = 'COUNT(*)'; |
wp-includes/class-wp-site-query.php 1 location
|
@@ 386-392 (lines=7) @@
|
383 |
|
$number = absint( $this->query_vars['number'] ); |
384 |
|
$offset = absint( $this->query_vars['offset'] ); |
385 |
|
|
386 |
|
if ( ! empty( $number ) ) { |
387 |
|
if ( $offset ) { |
388 |
|
$limits = 'LIMIT ' . $offset . ',' . $number; |
389 |
|
} else { |
390 |
|
$limits = 'LIMIT ' . $number; |
391 |
|
} |
392 |
|
} |
393 |
|
|
394 |
|
if ( $this->query_vars['count'] ) { |
395 |
|
$fields = 'COUNT(*)'; |
wp-includes/class-wp-term-query.php 1 location
|
@@ 524-528 (lines=5) @@
|
521 |
|
|
522 |
|
// Don't limit the query results when we have to descend the family tree. |
523 |
|
if ( $number && ! $hierarchical && ! $child_of && '' === $parent ) { |
524 |
|
if ( $offset ) { |
525 |
|
$limits = 'LIMIT ' . $offset . ',' . $number; |
526 |
|
} else { |
527 |
|
$limits = 'LIMIT ' . $number; |
528 |
|
} |
529 |
|
} else { |
530 |
|
$limits = ''; |
531 |
|
} |