Changeset 60643 for trunk/src/wp-admin/includes/dashboard.php
- Timestamp:
- 08/17/2025 04:57:30 PM (3 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/dashboard.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/dashboard.php
r59159 r60643 1075 1075 } 1076 1076 1077 while ( count( $comments ) < $total_items && $possible = get_comments( $comments_query ) ) { 1078 if ( ! is_array( $possible ) ) { 1077 do { 1078 $possible = get_comments( $comments_query ); 1079 1080 if ( empty( $possible ) || ! is_array( $possible ) ) { 1079 1081 break; 1080 1082 } … … 1089 1091 } 1090 1092 1091 $comments[] = $comment; 1092 1093 if ( count( $comments ) === $total_items ) { 1093 $comments[] = $comment; 1094 $comments_count = count( $comments ); 1095 1096 if ( $comments_count === $total_items ) { 1094 1097 break 2; 1095 1098 } … … 1098 1101 $comments_query['offset'] += $comments_query['number']; 1099 1102 $comments_query['number'] = $total_items * 10; 1100 } 1103 } while ( $comments_count < $total_items ); 1101 1104 1102 1105 if ( $comments ) {
Note: See TracChangeset
for help on using the changeset viewer.