| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 36 | private function enqueue_all_comments() { |
||
| 37 | global $wpdb; |
||
| 38 | |||
| 39 | $comment_ids = $wpdb->get_col( "SELECT comment_id FROM $wpdb->comments"); |
||
| 40 | $chunked_comment_ids = array_chunk( $comment_ids, self::$array_chunk_size ); |
||
| 41 | |||
| 42 | foreach ( $chunked_comment_ids as $chunk ) { |
||
| 43 | $comments = get_comments( array( 'comment__in' => $chunk ) ); |
||
| 44 | do_action( 'jp_full_sync_comments', $comments ); |
||
| 45 | } |
||
| 46 | } |
||
| 47 | |||
| 48 | } |
The PSR-2 coding standard requires that all properties in a class have their visibility explicitly declared. If you declare a property using
the property is implicitly global.
To learn more about the PSR-2, please see the PHP-FIG site on the PSR-2.