← All changes
|
includes/classes/Indexable/Comment/QueryIntegration.php
+2
-3
5.0.2
→
5.3.5
View file →
| @@ -7,9 +7,9 @@ | ||
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | 9 | namespace ElasticPress\Indexable\Comment; |
| 10 | 10 | |
| 11 | -use \WP_Comment_Query; | |
| 11 | +use WP_Comment_Query; | |
| 12 | 12 | use ElasticPress\Indexables; |
| 13 | 13 | use ElasticPress\Utils; |
| 14 | 14 | |
| 15 | 15 | if ( ! defined( 'ABSPATH' ) ) { |
| @@ -330,9 +330,9 @@ | ||
| 330 | 330 | $child_comments[] = $level_comment; |
| 331 | 331 | } |
| 332 | 332 | } |
| 333 | 333 | |
| 334 | - $level ++; | |
| 334 | + ++$level; | |
| 335 | 335 | $levels[ $level ] = $child_comments; |
| 336 | 336 | } while ( $child_comments ); |
| 337 | 337 | |
| 338 | 338 | // Pull out just the descendant comments |
| @@ -371,6 +371,5 @@ | ||
| 371 | 371 | } |
| 372 | 372 | |
| 373 | 373 | return $comments; |
| 374 | 374 | } |
| 375 | - | |
| 376 | 375 | } |