← All changes
|
includes/classes/Indexable/Comment/QueryIntegration.php
+5
-6
4.6.1
→
5.3.5
View file →
| @@ -7,11 +7,11 @@ | ||
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | 9 | namespace ElasticPress\Indexable\Comment; |
| 10 | 10 | |
| 11 | -use ElasticPress\Indexables as Indexables; | |
| 12 | -use \WP_Comment_Query as WP_Comment_Query; | |
| 13 | -use ElasticPress\Utils as Utils; | |
| 11 | +use WP_Comment_Query; | |
| 12 | +use ElasticPress\Indexables; | |
| 13 | +use ElasticPress\Utils; | |
| 14 | 14 | |
| 15 | 15 | if ( ! defined( 'ABSPATH' ) ) { |
| 16 | 16 | exit; // Exit if accessed directly. |
| 17 | 17 | } |
| @@ -181,9 +181,9 @@ | ||
| 181 | 181 | |
| 182 | 182 | $this->index = implode( ',', $this->index ); |
| 183 | 183 | } elseif ( ! empty( $site__not_in ) ) { |
| 184 | 184 | |
| 185 | - $sites = get_sites( | |
| 185 | + $sites = \get_sites( | |
| 186 | 186 | array( |
| 187 | 187 | 'fields' => 'ids', |
| 188 | 188 | 'site__not_in' => $site__not_in, |
| 189 | 189 | ) |
| @@ -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 | } |