Changeset 37743 for trunk/src/wp-admin/includes/ajax-actions.php
- Timestamp:
- 06/17/2016 09:47:58 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r37741 r37743 353 353 // JS didn't send us everything we need to know. Just die with success message 354 354 if ( ! $total || ! $per_page || ! $page || ! $url ) { 355 $time = time(); 356 $comment = get_comment( $comment_id ); 355 $time = time(); 356 $comment = get_comment( $comment_id ); 357 $comment_status = ''; 358 $comment_link = ''; 359 360 if ( $comment ) { 361 $comment_status = $comment->comment_approved; 362 } 363 364 if ( 1 === (int) $comment_status ) { 365 $comment_link = get_comment_link( $comment ); 366 } 357 367 358 368 $counts = wp_count_comments(); … … 363 373 'id' => $comment_id, 364 374 'supplemental' => array( 365 'status' => $comment ? $comment->comment_approved : '',375 'status' => $comment_status, 366 376 'postId' => $comment ? $comment->comment_post_ID : '', 367 377 'time' => $time, … … 374 384 _nx( '%s in moderation', '%s in moderation', $counts->moderated, 'comments' ), 375 385 number_format_i18n( $counts->moderated ) 376 ) 386 ), 387 'comment_link' => $comment_link, 377 388 ) 378 389 ) );
Note: See TracChangeset
for help on using the changeset viewer.