Changeset 62822 for trunk/src/wp-includes/class-wp-comment-query.php
- Timestamp:
- 07/22/2026 04:52:41 AM (5 weeks ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp-comment-query.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-comment-query.php
r61403 r62822 94 94 * List of comments located by the query. 95 95 * 96 * Null until a query has been run. 97 * 96 98 * @since 4.0.0 97 * @var int[]|WP_Comment[] 99 * @var int[]|WP_Comment[]|null 100 * @phpstan-var non-negative-int[]|array<int, WP_Comment>|null 98 101 */ 99 102 public $comments; … … 104 107 * @since 4.4.0 105 108 * @var int 109 * @phpstan-var non-negative-int 106 110 */ 107 111 public $found_comments = 0; … … 112 116 * @since 4.4.0 113 117 * @var int 118 * @phpstan-var non-negative-int 114 119 */ 115 120 public $max_num_pages = 0; … … 360 365 * 361 366 * @param string|array $query Array or URL query string of parameters. 362 * @return array|int List of comments, or number of comments when 'count' is passed as a query var. 367 * @return WP_Comment[]|int[]|int List of comments, or number of comments when 'count' is passed as a query var. 368 * @phpstan-return array<int, WP_Comment>|non-negative-int[]|non-negative-int 363 369 */ 364 370 public function query( $query ) { … … 375 381 * 376 382 * @return int|int[]|WP_Comment[] List of comments or number of found comments if `$count` argument is true. 383 * @phpstan-return array<int, WP_Comment>|non-negative-int[]|non-negative-int 377 384 */ 378 385 public function get_comments() { … … 542 549 * 543 550 * @return int|array A single count of comment IDs if a count query. An array of comment IDs if a full query. 551 * @phpstan-return non-negative-int|list<non-negative-int> 544 552 */ 545 553 protected function get_comment_ids() {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)