Changeset 48140 for trunk/src/wp-includes/comment-template.php
- Timestamp:
- 06/23/2020 01:51:03 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment-template.php
r48133 r48140 1331 1331 * 1332 1332 * @since 1.5.0 1333 * @since 5.5.0 Removed the need to use the $user_ID global.1334 1333 * 1335 1334 * @global WP_Query $wp_query WordPress Query object. … … 1397 1396 } 1398 1397 1399 $include_unapproved = wp_get_include_unapproved_comments_argument(); 1400 if ( $include_unapproved ) { 1401 $comment_args['include_unapproved'] = $include_unapproved; 1398 if ( is_user_logged_in() ) { 1399 $comment_args['include_unapproved'] = array( get_current_user_id() ); 1400 } else { 1401 $unapproved_email = wp_get_unapproved_comment_author_email(); 1402 1403 if ( $unapproved_email ) { 1404 $comment_args['include_unapproved'] = array( $unapproved_email ); 1405 } 1402 1406 } 1403 1407 … … 2098 2102 2099 2103 if ( is_user_logged_in() ) { 2100 $comment_args['include_unapproved'] = get_current_user_id();2104 $comment_args['include_unapproved'] = array( get_current_user_id() ); 2101 2105 } else { 2102 2106 $unapproved_email = wp_get_unapproved_comment_author_email();
Note: See TracChangeset
for help on using the changeset viewer.