Changeset 56747
- Timestamp:
- 09/29/2023 05:11:21 PM (10 months ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-comments-list-table.php
r56665 r56747 178 178 $args, 179 179 array( 180 'count' => true, 181 'offset' => 0, 182 'number' => 0, 180 'count' => true, 181 'offset' => 0, 182 'number' => 0, 183 'orderby' => 'none', 183 184 ) 184 185 ) … … 299 300 'user_id' => $current_user_id, 300 301 'count' => true, 302 301 303 ) 302 304 ); … … 519 521 if ( get_comments( 520 522 array( 521 'number' => 1, 522 'type' => $type, 523 'count' => true, 524 'orderby' => 'none', 525 'type' => $type, 523 526 ) 524 527 ) ) { -
trunk/src/wp-admin/includes/meta-boxes.php
r56571 r56747 902 902 array( 903 903 'post_id' => $post->ID, 904 'number' => 1,905 904 'count' => true, 905 906 906 ) 907 907 ); -
trunk/src/wp-includes/comment.php
r56548 r56747 397 397 'count' => true, 398 398 'update_comment_meta_cache' => false, 399 399 400 ); 400 401 if ( $post_id > 0 ) { … … 1115 1116 'count' => true, 1116 1117 'status' => 'approve', 1118 1117 1119 'parent' => 0, 1118 1120 'date_query' => array( -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php
r56586 r56747 296 296 unset( $prepared_args['number'], $prepared_args['offset'] ); 297 297 298 $query = new WP_Comment_Query(); 299 $prepared_args['count'] = true; 298 $query = new WP_Comment_Query(); 299 $prepared_args['count'] = true; 300 $prepared_args['orderby'] = 'none'; 300 301 301 302 $total_comments = $query->query( $prepared_args ); … … 1189 1190 $comment_children = $comment->get_children( 1190 1191 array( 1191 ' number' => 1,1192 ' count' => true,1192 ', 1193 ', 1193 1194 ) 1194 1195 ); -
trunk/tests/phpunit/tests/comment/query.php
r56549 r56747 3092 3092 $found = $q->query( 3093 3093 array( 3094 'count' => true, 3094 'count' => true, 3095 'orderby' => 'none', 3095 3096 ) 3096 3097 ); … … 3130 3131 array( 3131 3132 'count' => true, 3133 3132 3134 'meta_query' => array( 3133 3135 array( … … 5002 5004 $query_1 = $q->query( 5003 5005 array( 5004 'fields' => 'ids',5005 'number' => 3,5006 'order ' => 'ASC',5007 'count' => true,5006 'fields' => 'ids', 5007 'number' => 3, 5008 'order', 5009 'count' => true, 5008 5010 ) 5009 5011 ); … … 5012 5014 $query_2 = $q->query( 5013 5015 array( 5014 'fields' => 'ids',5015 'number' => 3,5016 'order ' => 'ASC',5017 'count' => true,5016 'fields' => 'ids', 5017 'number' => 3, 5018 'order', 5019 'count' => true, 5018 5020 ) 5019 5021 );
Note: See TracChangeset
for help on using the changeset viewer.