WP_Comment_Query::get_comments(): int|int[]|WP_Comment[]
- Since
- 4.2.0
- Source
wp-includes/class-wp-comment-query.php:378
Compatibility
- WordPress
- since 4.2.0
- PHP
- 7.4–8.6-dev
- 6.7.10
- 6.8.11
- 6.9.10
- 7.0.7
- 7.1.3
Present in every tracked release (6.7.10 to 7.1.3), and compiles on PHP 7.4 through 8.6-dev.
Return value
int|int[]|WP_Comment[]- List of comments or number of found comments if
$countargument is true.
Performance profile
How much work a call to WP_Comment_Query::get_comments() does, and what it touches: the algorithmic scaling, the Zend instruction count per call across PHP versions, the hooks it hands control to, and the core code that calls it. Measured from the compiled opcodes, not a stopwatch, so every number is identical on any machine running the same PHP version, and every function in core is ranked by cost.
- Cost class
- Moderate
- Scaling
- Scales with input
- Instructions
- 41–179
- Plugin surface
- 3 hooks
- Called by
- 1
Only touches the object cache, via wp_cache_get_last_changed().
The body loops, so the work grows with how much data it finds.
Executed per call on PHP 8.5, depending on the branch taken. The body compiles to 209.
Third-party callbacks on 'pre_get_comments', 'comments_pre_query', 'the_comments' run inside this call, and their cost is not bounded by anything here.
1 place in core call this, so the cost is paid more often than your own code shows.
What it touches
- hookthird-party callbacks
do_action_ref_array()called directly - cacheobject cache
wp_cache_get_last_changed()called directly - serializeserialisation
serialize()called directly
Further down the call graph this can also reach query, option and transient. Those are the worst case, several calls deep and usually down an error path, not what a normal call pays.
What one call costs · 134 distinct outcomes
One number would be a lie: the work depends on which branch runs. These are every distinct cost WP_Comment_Query::get_comments() can have, taken from its control-flow graph on PHP 8.5.
| When | Instructions | Calls it makes |
|---|---|---|
empty($value) && $comment_data !== null | 41–46 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars() |
!empty($value) && $comment_data !== null | 53–58 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql() |
empty($value) && $comment_data === null && $cache_value !== false | 85–88 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get() |
empty($value) && $comment_data === null && $cache_value === false | 95–98 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add() |
!empty($value) && $comment_data === null && $cache_value !== false | 97–100 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get() |
empty($value) && $comment_data === null && $cache_value === false | 97–100 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add() |
empty($value) && $comment_data === null && $cache_value !== false | 98 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ceil() |
empty($value) && $comment_data === null && $cache_value !== false | 99–102 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), array_map() |
empty($value) && $comment_data === null && $cache_value !== false | 102–105 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), array_map(), wp_lazyload_comment_meta() |
!empty($value) && $comment_data === null && $cache_value === false | 107–110 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add() |
empty($value) && $comment_data === null && $cache_value === false | 108 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add(), ceil() |
empty($value) && $comment_data === null && $cache_value === false | 109–112 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add(), array_map() |
122 further outcomes, up to 179 instructions
!empty($value) && $comment_data === null && $cache_value === false | 109–112 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add() |
!empty($value) && $comment_data === null && $cache_value !== false | 110 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ceil() |
empty($value) && $comment_data === null && $cache_value === false | 110 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add(), ceil() |
!empty($value) && $comment_data === null && $cache_value !== false | 111–114 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), array_map() |
empty($value) && $comment_data === null && $cache_value === false | 111–114 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add(), array_map() |
empty($value) && $comment_data === null && $cache_value !== false | 112 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ceil(), array_map() |
empty($value) && $comment_data === null && $cache_value === false | 112–115 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add(), array_map(), wp_lazyload_comment_meta() |
!empty($value) && $comment_data === null && $cache_value !== false | 114–117 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), array_map(), wp_lazyload_comment_meta() |
empty($value) && $comment_data === null && $cache_value === false | 114–117 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add(), array_map(), wp_lazyload_comment_meta() |
empty($value) && $comment_data === null && $cache_value !== false | 115 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ceil(), array_map(), wp_lazyload_comment_meta() |
!empty($value) && $comment_data === null && $cache_value === false | 120 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add(), ceil() |
!empty($value) && $comment_data === null && $cache_value === false | 121–124 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add(), array_map() |
empty($value) && $comment_data === null && $cache_value === false | 122 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add(), ceil(), array_map() |
!empty($value) && $comment_data === null && $cache_value === false | 122 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add(), ceil() |
!empty($value) && $comment_data === null && $cache_value === false | 123–126 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add(), array_map() |
!empty($value) && $comment_data === null && $cache_value !== false | 124 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ceil(), array_map() |
empty($value) && $comment_data === null && $cache_value === false | 124 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add(), ceil(), array_map() |
!empty($value) && $comment_data === null && $cache_value === false | 124–127 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add(), array_map(), wp_lazyload_comment_meta() |
empty($value) && $comment_data === null && $cache_value !== false | 125–129 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), array_map(), _prime_comment_caches(), array_map() |
empty($value) && $comment_data === null && $cache_value === false | 125 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add(), ceil(), array_map(), wp_lazyload_comment_meta() |
!empty($value) && $comment_data === null && $cache_value === false | 126–129 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add(), array_map(), wp_lazyload_comment_meta() |
!empty($value) && $comment_data === null && $cache_value !== false | 127 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ceil(), array_map(), wp_lazyload_comment_meta() |
empty($value) && $comment_data === null && $cache_value === false | 127 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add(), ceil(), array_map(), wp_lazyload_comment_meta() |
empty($value) && $comment_data === null && $cache_value !== false | 128–132 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), array_map() |
empty($value) && $comment_data === null && $cache_value !== false | 129–133 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), array_map(), _prime_comment_caches(), array_map(), ->fill_descendants() |
empty($value) && $comment_data === null && $cache_value !== false | 132–136 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), array_map(), ->fill_descendants() |
empty($value) && $comment_data === null && $cache_value !== false | 133–138 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), array_map(), _prime_comment_caches(), _prime_post_caches(), array_map() |
!empty($value) && $comment_data === null && $cache_value === false | 134 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add(), ceil(), array_map() |
empty($value) && $comment_data === null && $cache_value === false | 135–139 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add(), array_map(), _prime_comment_caches(), array_map() |
empty($value) && $comment_data === null && $cache_value !== false | 136–141 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), _prime_post_caches(), array_map() |
!empty($value) && $comment_data === null && $cache_value === false | 136 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add(), ceil(), array_map() |
!empty($value) && $comment_data === null && $cache_value !== false | 137–141 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), array_map(), _prime_comment_caches(), array_map() |
empty($value) && $comment_data === null && $cache_value !== false | 137–142 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), array_map(), _prime_comment_caches(), _prime_post_caches(), array_map(), ->fill_descendants() |
empty($value) && $comment_data === null && $cache_value === false | 137–141 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add(), array_map(), _prime_comment_caches(), array_map() |
!empty($value) && $comment_data === null && $cache_value === false | 137 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add(), ceil(), array_map(), wp_lazyload_comment_meta() |
empty($value) && $comment_data === null && $cache_value !== false | 138–139 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ceil(), array_map(), _prime_comment_caches(), array_map() |
empty($value) && $comment_data === null && $cache_value === false | 138–142 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), array_map() |
empty($value) && $comment_data === null && $cache_value === false | 139–143 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add(), array_map(), _prime_comment_caches(), array_map(), ->fill_descendants() |
!empty($value) && $comment_data === null && $cache_value === false | 139 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add(), ceil(), array_map(), wp_lazyload_comment_meta() |
!empty($value) && $comment_data === null && $cache_value !== false | 140–144 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), array_map() |
empty($value) && $comment_data === null && $cache_value !== false | 140–145 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), _prime_post_caches(), array_map(), ->fill_descendants() |
empty($value) && $comment_data === null && $cache_value === false | 140–144 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), array_map() |
empty($value) && $comment_data === null && $cache_value !== false | 141–142 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ceil(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), array_map() |
!empty($value) && $comment_data === null && $cache_value !== false | 141–145 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), array_map(), _prime_comment_caches(), array_map(), ->fill_descendants() |
empty($value) && $comment_data === null && $cache_value === false | 141–145 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add(), array_map(), _prime_comment_caches(), array_map(), ->fill_descendants() |
empty($value) && $comment_data === null && $cache_value !== false | 142–143 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ceil(), array_map(), _prime_comment_caches(), array_map(), ->fill_descendants() |
empty($value) && $comment_data === null && $cache_value === false | 142–146 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), array_map(), ->fill_descendants() |
empty($value) && $comment_data === null && $cache_value === false | 143–148 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add(), array_map(), _prime_comment_caches(), _prime_post_caches(), array_map() |
!empty($value) && $comment_data === null && $cache_value !== false | 144–148 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), array_map(), ->fill_descendants() |
empty($value) && $comment_data === null && $cache_value === false | 144–148 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), array_map(), ->fill_descendants() |
!empty($value) && $comment_data === null && $cache_value !== false | 145–150 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), array_map(), _prime_comment_caches(), _prime_post_caches(), array_map() |
empty($value) && $comment_data === null && $cache_value !== false | 145–146 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ceil(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), array_map(), ->fill_descendants() |
empty($value) && $comment_data === null && $cache_value === false | 145–150 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add(), array_map(), _prime_comment_caches(), _prime_post_caches(), array_map() |
empty($value) && $comment_data === null && $cache_value !== false | 146–148 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ceil(), array_map(), _prime_comment_caches(), _prime_post_caches(), array_map() |
empty($value) && $comment_data === null && $cache_value === false | 146–151 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), _prime_post_caches(), array_map() |
!empty($value) && $comment_data === null && $cache_value === false | 147–151 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add(), array_map(), _prime_comment_caches(), array_map() |
empty($value) && $comment_data === null && $cache_value === false | 147–152 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add(), array_map(), _prime_comment_caches(), _prime_post_caches(), array_map(), ->fill_descendants() |
empty($value) && $comment_data === null && $cache_value === false | 148–149 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add(), ceil(), array_map(), _prime_comment_caches(), array_map() |
!empty($value) && $comment_data === null && $cache_value !== false | 148–153 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), _prime_post_caches(), array_map() |
empty($value) && $comment_data === null && $cache_value === false | 148–153 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), _prime_post_caches(), array_map() |
empty($value) && $comment_data === null && $cache_value !== false | 149–151 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ceil(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), _prime_post_caches(), array_map() |
!empty($value) && $comment_data === null && $cache_value !== false | 149–154 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), array_map(), _prime_comment_caches(), _prime_post_caches(), array_map(), ->fill_descendants() |
!empty($value) && $comment_data === null && $cache_value === false | 149–153 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add(), array_map(), _prime_comment_caches(), array_map() |
empty($value) && $comment_data === null && $cache_value === false | 149–154 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add(), array_map(), _prime_comment_caches(), _prime_post_caches(), array_map(), ->fill_descendants() |
!empty($value) && $comment_data === null && $cache_value !== false | 150–151 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ceil(), array_map(), _prime_comment_caches(), array_map() |
empty($value) && $comment_data === null && $cache_value !== false | 150–152 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ceil(), array_map(), _prime_comment_caches(), _prime_post_caches(), array_map(), ->fill_descendants() |
empty($value) && $comment_data === null && $cache_value === false | 150–151 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add(), ceil(), array_map(), _prime_comment_caches(), array_map() |
!empty($value) && $comment_data === null && $cache_value === false | 150–154 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), array_map() |
empty($value) && $comment_data === null && $cache_value === false | 150–155 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), _prime_post_caches(), array_map(), ->fill_descendants() |
empty($value) && $comment_data === null && $cache_value === false | 151–152 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add(), ceil(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), array_map() |
!empty($value) && $comment_data === null && $cache_value === false | 151–155 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add(), array_map(), _prime_comment_caches(), array_map(), ->fill_descendants() |
empty($value) && $comment_data === null && $cache_value === false | 152–153 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add(), ceil(), array_map(), _prime_comment_caches(), array_map(), ->fill_descendants() |
!empty($value) && $comment_data === null && $cache_value !== false | 152–157 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), _prime_post_caches(), array_map(), ->fill_descendants() |
!empty($value) && $comment_data === null && $cache_value === false | 152–156 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), array_map() |
empty($value) && $comment_data === null && $cache_value === false | 152–157 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), _prime_post_caches(), array_map(), ->fill_descendants() |
!empty($value) && $comment_data === null && $cache_value !== false | 153–154 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ceil(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), array_map() |
empty($value) && $comment_data === null && $cache_value !== false | 153–155 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ceil(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), _prime_post_caches(), array_map(), ->fill_descendants() |
empty($value) && $comment_data === null && $cache_value === false | 153–154 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add(), ceil(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), array_map() |
!empty($value) && $comment_data === null && $cache_value === false | 153–157 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add(), array_map(), _prime_comment_caches(), array_map(), ->fill_descendants() |
!empty($value) && $comment_data === null && $cache_value !== false | 154–155 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ceil(), array_map(), _prime_comment_caches(), array_map(), ->fill_descendants() |
empty($value) && $comment_data === null && $cache_value === false | 154–155 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add(), ceil(), array_map(), _prime_comment_caches(), array_map(), ->fill_descendants() |
!empty($value) && $comment_data === null && $cache_value === false | 154–158 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), array_map(), ->fill_descendants() |
!empty($value) && $comment_data === null && $cache_value === false | 155–160 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add(), array_map(), _prime_comment_caches(), _prime_post_caches(), array_map() |
empty($value) && $comment_data === null && $cache_value === false | 155–156 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add(), ceil(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), array_map(), ->fill_descendants() |
empty($value) && $comment_data === null && $cache_value === false | 156–158 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add(), ceil(), array_map(), _prime_comment_caches(), _prime_post_caches(), array_map() |
!empty($value) && $comment_data === null && $cache_value === false | 156–160 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), array_map(), ->fill_descendants() |
!empty($value) && $comment_data === null && $cache_value !== false | 157–158 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ceil(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), array_map(), ->fill_descendants() |
!empty($value) && $comment_data === null && $cache_value === false | 157–162 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add(), array_map(), _prime_comment_caches(), _prime_post_caches(), array_map() |
empty($value) && $comment_data === null && $cache_value === false | 157–158 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add(), ceil(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), array_map(), ->fill_descendants() |
!empty($value) && $comment_data === null && $cache_value !== false | 158–160 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ceil(), array_map(), _prime_comment_caches(), _prime_post_caches(), array_map() |
empty($value) && $comment_data === null && $cache_value === false | 158–160 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add(), ceil(), array_map(), _prime_comment_caches(), _prime_post_caches(), array_map() |
!empty($value) && $comment_data === null && $cache_value === false | 158–163 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), _prime_post_caches(), array_map() |
empty($value) && $comment_data === null && $cache_value === false | 159–161 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add(), ceil(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), _prime_post_caches(), array_map() |
!empty($value) && $comment_data === null && $cache_value === false | 159–164 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add(), array_map(), _prime_comment_caches(), _prime_post_caches(), array_map(), ->fill_descendants() |
!empty($value) && $comment_data === null && $cache_value === false | 160–161 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add(), ceil(), array_map(), _prime_comment_caches(), array_map() |
empty($value) && $comment_data === null && $cache_value === false | 160–162 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add(), ceil(), array_map(), _prime_comment_caches(), _prime_post_caches(), array_map(), ->fill_descendants() |
!empty($value) && $comment_data === null && $cache_value === false | 160–165 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), _prime_post_caches(), array_map() |
!empty($value) && $comment_data === null && $cache_value !== false | 161–163 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ceil(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), _prime_post_caches(), array_map() |
empty($value) && $comment_data === null && $cache_value === false | 161–163 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add(), ceil(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), _prime_post_caches(), array_map() |
!empty($value) && $comment_data === null && $cache_value === false | 161–166 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add(), array_map(), _prime_comment_caches(), _prime_post_caches(), array_map(), ->fill_descendants() |
!empty($value) && $comment_data === null && $cache_value !== false | 162–164 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ceil(), array_map(), _prime_comment_caches(), _prime_post_caches(), array_map(), ->fill_descendants() |
!empty($value) && $comment_data === null && $cache_value === false | 162–163 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add(), ceil(), array_map(), _prime_comment_caches(), array_map() |
empty($value) && $comment_data === null && $cache_value === false | 162–164 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add(), ceil(), array_map(), _prime_comment_caches(), _prime_post_caches(), array_map(), ->fill_descendants() |
!empty($value) && $comment_data === null && $cache_value === false | 162–167 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), _prime_post_caches(), array_map(), ->fill_descendants() |
!empty($value) && $comment_data === null && $cache_value === false | 163–164 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add(), ceil(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), array_map() |
empty($value) && $comment_data === null && $cache_value === false | 163–165 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add(), ceil(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), _prime_post_caches(), array_map(), ->fill_descendants() |
!empty($value) && $comment_data === null && $cache_value === false | 164–165 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add(), ceil(), array_map(), _prime_comment_caches(), array_map(), ->fill_descendants() |
!empty($value) && $comment_data === null && $cache_value === false | 164–169 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), _prime_post_caches(), array_map(), ->fill_descendants() |
!empty($value) && $comment_data === null && $cache_value !== false | 165–167 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ceil(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), _prime_post_caches(), array_map(), ->fill_descendants() |
!empty($value) && $comment_data === null && $cache_value === false | 165–166 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add(), ceil(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), array_map() |
empty($value) && $comment_data === null && $cache_value === false | 165–167 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add(), ceil(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), _prime_post_caches(), array_map(), ->fill_descendants() |
!empty($value) && $comment_data === null && $cache_value === false | 166–167 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add(), ceil(), array_map(), _prime_comment_caches(), array_map(), ->fill_descendants() |
!empty($value) && $comment_data === null && $cache_value === false | 167–168 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add(), ceil(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), array_map(), ->fill_descendants() |
!empty($value) && $comment_data === null && $cache_value === false | 168–170 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add(), ceil(), array_map(), _prime_comment_caches(), _prime_post_caches(), array_map() |
!empty($value) && $comment_data === null && $cache_value === false | 169–170 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add(), ceil(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), array_map(), ->fill_descendants() |
!empty($value) && $comment_data === null && $cache_value === false | 170–172 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add(), ceil(), array_map(), _prime_comment_caches(), _prime_post_caches(), array_map() |
!empty($value) && $comment_data === null && $cache_value === false | 171–173 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add(), ceil(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), _prime_post_caches(), array_map() |
!empty($value) && $comment_data === null && $cache_value === false | 172–174 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add(), ceil(), array_map(), _prime_comment_caches(), _prime_post_caches(), array_map(), ->fill_descendants() |
!empty($value) && $comment_data === null && $cache_value === false | 173–175 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add(), ceil(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), _prime_post_caches(), array_map() |
!empty($value) && $comment_data === null && $cache_value === false | 174–176 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add(), ceil(), array_map(), _prime_comment_caches(), _prime_post_caches(), array_map(), ->fill_descendants() |
!empty($value) && $comment_data === null && $cache_value === false | 175–177 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), wp_cache_add(), ceil(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), _prime_post_caches(), array_map(), ->fill_descendants() |
!empty($value) && $comment_data === null && $cache_value === false | 177–179 | ->parse_query(), ->parse_query_vars(), ->parse_query_vars(), ->get_sql(), array_keys(), wp_array_slice_assoc(), serialize(), md5(), wp_cache_get_last_changed(), wp_cache_get(), ->get_comment_ids(), ->set_found_comments(), wp_cache_add(), ceil(), array_map(), wp_lazyload_comment_meta(), _prime_comment_caches(), _prime_post_caches(), array_map(), ->fill_descendants() |
Across PHP versions
Compiles the same on PHP 7.4, 8.1, 8.2, 8.3, 8.4, 8.5 and 8.6-dev: 209 instructions, 41–179 executed per call, 18 branches. The work does not change between versions.
An instruction is not a fixed amount of time, so a matching count is not necessarily the same speed; what it rules out is a difference in the work itself.
Hooks and filters fired · 3
3 hooks fire while WP_Comment_Query::get_comments() runs, in this order:
- apply_filters( comments_pre_query )filterline 434 (+56 into the body)
Filters the comments data before the query takes place.
Uses · 15
- do_action_ref_array()Calls the callback functions that have been added to an action hook, specifying arguments in an array.
- apply_filters_ref_array()Calls the callback functions that have been added to a filter hook, specifying arguments in an array.
- wp_array_slice_assoc()Extracts a slice of an array, given a list of keys.
- wp_cache_get_last_changed()Gets last changed date for the specified cache group.
- wp_cache_get()Retrieves the cache contents from the cache by key and group.
- wp_cache_add()Adds data to the cache, if the cache key doesn't already exist.
- wp_lazyload_comment_meta()Queue comment meta for lazy-loading.
- _prime_comment_caches()Adds any comments from the given IDs to the cache that do not already exist in cache.
- get_comment()Retrieves comment data given a comment ID or comment object.
- _prime_post_caches()Adds any posts from the given IDs to the cache that do not already exist in cache.
- WP_Comment_Query::parse_query()Parse arguments passed to the comment query with default query parameters.
- WP_Meta_Query::__construct()Constructor.
Show all 15
- WP_Comment_Query::get_comment_ids()Used internally to get a list of comment IDs matching the query vars.
- WP_Comment_Query::set_found_comments()Populates found_comments and max_num_pages properties for the current query if the limit clause was used.
- WP_Comment_Query::fill_descendants()Fetch descendants for located comments.
Used by · 1
- WP_Comment_Query::query()Sets up the WordPress query for retrieving comments.
Source code
public function get_comments() { global $wpdb; $this->parse_query(); // Parse meta query. $this->meta_query = new WP_Meta_Query(); $this->meta_query->parse_query_vars( $this->query_vars ); /** * Fires before comments are retrieved. * * @since 3.1.0 * * @param WP_Comment_Query $query Current instance of WP_Comment_Query (passed by reference). */ do_action_ref_array( 'pre_get_comments', array( &$this ) ); // Reparse query vars, in case they were modified in a 'pre_get_comments' callback. $this->meta_query->parse_query_vars( $this->query_vars ); if ( ! empty( $this->meta_query->queries ) ) { $this->meta_query_clauses = $this->meta_query->get_sql( 'comment', $wpdb->comments, 'comment_ID', $this ); } $comment_data = null; /** * Filters the comments data before the query takes place. * * Return a non-null value to bypass WordPress' default comment queries. * * The expected return type from this filter depends on the value passed * in the request query vars: * - When `$this->query_vars['count']` is set, the filter should return * the comment count as an integer. * - When `'ids' === $this->query_vars['fields']`, the filter should return * an array of comment IDs. * - Otherwise the filter should return an array of WP_Comment objects. * * Note that if the filter returns an array of comment data, it will be assigned * to the `comments` property of the current WP_Comment_Query instance. * * Filtering functions that require pagination information are encouraged to set * the `found_comments` and `max_num_pages` properties of the WP_Comment_Query object, * passed to the filter by reference. If WP_Comment_Query does not perform a database * query, it will not have enough information to generate these values itself. * * @since 5.3.0 * @since 5.6.0 The returned array of comment data is assigned to the `comments` property * of the current WP_Comment_Query instance. * * @param array|int|null $comment_data Return an array of comment data to short-circuit WP's comment query, * the comment count as an integer if `$this->query_vars['count']` is set, * or null to allow WP to run its normal queries. * @param WP_Comment_Query $query The WP_Comment_Query instance, passed by reference. */ $comment_data = apply_filters_ref_array( 'comments_pre_query', array( $comment_data, &$this ) ); if ( null !== $comment_data ) { if ( is_array( $comment_data ) && ! $this->query_vars['count'] ) { $this->comments = $comment_data; } return $comment_data; } /* * Only use the args defined in the query_var_defaults to compute the key, * but ignore 'fields', 'update_comment_meta_cache', 'update_comment_post_cache' which does not affect query results. */ $_args = wp_array_slice_assoc( $this->query_vars, array_keys( $this->query_var_defaults ) ); unset( $_args['fields'], $_args['update_comment_meta_cache'], $_args['update_comment_post_cache'] ); $key = md5( serialize( $_args ) ); $last_changed = wp_cache_get_last_changed( 'comment' ); $cache_key = "get_comments:$key:$last_changed"; $cache_value = wp_cache_get( $cache_key, 'comment-queries' ); if ( false === $cache_value ) { $comment_ids = $this->get_comment_ids();Changelog
Introduced in 4.2.0. Unchanged from 6.7.10 through 7.1.3.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.7.10 tag, from
src/wp-includes/class-wp-comment-query.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it. - Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.