Changeset 43110 for branches/4.9/src/wp-includes/comment.php
- Timestamp:
- 05/02/2018 03:43:37 AM (6 years ago)
- Location:
- branches/4.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
-
branches/4.9/src/wp-includes/comment.php
r43092 r43110 3283 3283 if ( empty( $email_address ) ) { 3284 3284 return array( 3285 ' num_items_removed' => 0,3286 ' num_items_retained' => 0,3287 'messages' 3288 'done' 3285 'items_removed' => false, 3286 'items_retained' => false, 3287 'messages' => array(), 3288 'done' => true, 3289 3289 ); 3290 3290 } 3291 3291 3292 3292 // Limit us to 500 comments at a time to avoid timing out. 3293 $number = 500; 3294 $page = (int) $page; 3295 $num_items_removed = 0; 3293 $number = 500; 3294 $page = (int) $page; 3295 $items_removed = false; 3296 $items_retained = false; 3296 3297 3297 3298 $comments = get_comments( … … 3340 3341 } 3341 3342 3343 $items_retained = true; 3344 3342 3345 continue; 3343 3346 } … … 3350 3353 3351 3354 if ( $updated ) { 3352 $ num_items_removed++;3355 $items_removed = true; 3353 3356 clean_comment_cache( $comment_id ); 3357 } else { 3358 $items_retained = true; 3354 3359 } 3355 3360 } … … 3358 3363 3359 3364 return array( 3360 ' num_items_removed' => $num_items_removed,3361 ' num_items_retained' => count( $comments ) - $num_items_removed,3362 'messages' 3363 'done' 3365 'items_removed' => $items_removed, 3366 'items_retained' => $items_retained, 3367 'messages' => $messages, 3368 'done' => $done, 3364 3369 ); 3365 3370 } 3371
Note: See TracChangeset
for help on using the changeset viewer.