Changeset 48133 for trunk/src/wp-includes/comment-template.php
- Timestamp:
- 06/23/2020 05:22:39 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment-template.php
r48104 r48133 1331 1331 * 1332 1332 * @since 1.5.0 1333 * @since 5.5.0 Removed the need to use the $user_ID global. 1333 1334 * 1334 1335 * @global WP_Query $wp_query WordPress Query object. … … 1338 1339 * @global WP_Comment $comment Global comment object. 1339 1340 * @global string $user_login 1340 * @global int $user_ID1341 1341 * @global string $user_identity 1342 1342 * @global bool $overridden_cpage … … 1348 1348 */ 1349 1349 function comments_template( $file = '/comments.php', $separate_comments = false ) { 1350 global $wp_query, $withcomments, $post, $wpdb, $id, $comment, $user_login, $user_ ID, $user_identity, $overridden_cpage;1350 global $wp_query, $withcomments, $post, $wpdb, $id, $comment, $user_login, $user_identity, $overridden_cpage; 1351 1351 1352 1352 if ( ! ( is_single() || is_page() || $withcomments ) || empty( $post ) ) { … … 1397 1397 } 1398 1398 1399 if ( $user_ID ) { 1400 $comment_args['include_unapproved'] = array( $user_ID ); 1401 } else { 1402 $unapproved_email = wp_get_unapproved_comment_author_email(); 1403 1404 if ( $unapproved_email ) { 1405 $comment_args['include_unapproved'] = array( $unapproved_email ); 1406 } 1399 $include_unapproved = wp_get_include_unapproved_comments_argument(); 1400 if ( $include_unapproved ) { 1401 $comment_args['include_unapproved'] = $include_unapproved; 1407 1402 } 1408 1403
Note: See TracChangeset
for help on using the changeset viewer.