Changeset 53298 for trunk/src/wp-includes/blocks.php
- Timestamp:
- 04/28/2022 01:16:18 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks.php
r53235 r53298 1288 1288 1289 1289 $comment_args = array( 1290 'orderby' => 'comment_date_gmt', 1291 'order' => 'ASC', 1292 'status' => 'approve', 1293 'no_found_rows' => false, 1294 ); 1290 'orderby' => 'comment_date_gmt', 1291 'order' => 'ASC', 1292 'status' => 'approve', 1293 'no_found_rows' => false, 1294 ); 1295 1296 if ( is_user_logged_in() ) { 1297 $comment_args['include_unapproved'] = array( get_current_user_id() ); 1298 } else { 1299 $unapproved_email = wp_get_unapproved_comment_author_email(); 1300 1301 if ( $unapproved_email ) { 1302 $comment_args['include_unapproved'] = array( $unapproved_email ); 1303 } 1304 } 1295 1305 1296 1306 if ( ! empty( $block->context['postId'] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.