wp-includes/class-wp-comment-query.php 1 location
|
@@ 915-929 (lines=15) @@
|
| 912 |
|
* @since 4.6.0 |
| 913 |
|
* @access private |
| 914 |
|
*/ |
| 915 |
|
private function set_found_comments() { |
| 916 |
|
if ( $this->query_vars['number'] && ! $this->query_vars['no_found_rows'] ) { |
| 917 |
|
/** |
| 918 |
|
* Filters the query used to retrieve found comment count. |
| 919 |
|
* |
| 920 |
|
* @since 4.4.0 |
| 921 |
|
* |
| 922 |
|
* @param string $found_comments_query SQL query. Default 'SELECT FOUND_ROWS()'. |
| 923 |
|
* @param WP_Comment_Query $comment_query The `WP_Comment_Query` instance. |
| 924 |
|
*/ |
| 925 |
|
$found_comments_query = apply_filters( 'found_comments_query', 'SELECT FOUND_ROWS()', $this ); |
| 926 |
|
|
| 927 |
|
$this->found_comments = (int) $this->db->get_var( $found_comments_query ); |
| 928 |
|
} |
| 929 |
|
} |
| 930 |
|
|
| 931 |
|
/** |
| 932 |
|
* Fetch descendants for located comments. |
wp-includes/class-wp-network-query.php 1 location
|
@@ 472-486 (lines=15) @@
|
| 469 |
|
* @since 4.6.0 |
| 470 |
|
* @access private |
| 471 |
|
*/ |
| 472 |
|
private function set_found_networks() { |
| 473 |
|
if ( $this->query_vars['number'] && ! $this->query_vars['no_found_rows'] ) { |
| 474 |
|
/** |
| 475 |
|
* Filters the query used to retrieve found network count. |
| 476 |
|
* |
| 477 |
|
* @since 4.6.0 |
| 478 |
|
* |
| 479 |
|
* @param string $found_networks_query SQL query. Default 'SELECT FOUND_ROWS()'. |
| 480 |
|
* @param WP_Network_Query $network_query The `WP_Network_Query` instance. |
| 481 |
|
*/ |
| 482 |
|
$found_networks_query = apply_filters( 'found_networks_query', 'SELECT FOUND_ROWS()', $this ); |
| 483 |
|
|
| 484 |
|
$this->found_networks = (int) $this->db->get_var( $found_networks_query ); |
| 485 |
|
} |
| 486 |
|
} |
| 487 |
|
|
| 488 |
|
/** |
| 489 |
|
* Used internally to generate an SQL string for searching across multiple columns. |
wp-includes/class-wp-site-query.php 1 location
|
@@ 581-595 (lines=15) @@
|
| 578 |
|
* @since 4.6.0 |
| 579 |
|
* @access private |
| 580 |
|
*/ |
| 581 |
|
private function set_found_sites() { |
| 582 |
|
if ( $this->query_vars['number'] && ! $this->query_vars['no_found_rows'] ) { |
| 583 |
|
/** |
| 584 |
|
* Filters the query used to retrieve found site count. |
| 585 |
|
* |
| 586 |
|
* @since 4.6.0 |
| 587 |
|
* |
| 588 |
|
* @param string $found_sites_query SQL query. Default 'SELECT FOUND_ROWS()'. |
| 589 |
|
* @param WP_Site_Query $site_query The `WP_Site_Query` instance. |
| 590 |
|
*/ |
| 591 |
|
$found_sites_query = apply_filters( 'found_sites_query', 'SELECT FOUND_ROWS()', $this ); |
| 592 |
|
|
| 593 |
|
$this->found_sites = (int) $this->db->get_var( $found_sites_query ); |
| 594 |
|
} |
| 595 |
|
} |
| 596 |
|
|
| 597 |
|
/** |
| 598 |
|
* Used internally to generate an SQL string for searching across multiple columns. |