Changeset 61521
- Timestamp:
- 01/23/2026 06:21:35 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-comments-list-table.php
r61464 r61521 71 71 72 72 /** 73 * @return bool 73 * Checks if the user can edit posts. 74 * 75 * @return bool Whether the user can edit posts. 74 76 */ 75 77 public function ajax_user_can() { … … 78 80 79 81 /** 80 * @global string $mode List table view mode. 81 * @global int $post_id 82 * @global string $comment_status 83 * @global string $comment_type 84 * @global string $search 82 * Prepares the comments list items. 83 * 84 * @global string $mode Current list table display mode. 85 * @global int $post_id Current post ID filter. 86 * @global string $comment_status Comment status filter. 87 * @global string $comment_type Comment type filter. 88 * @global string $search Search term. 85 89 */ 86 90 public function prepare_items() { … … 199 203 200 204 /** 201 * @param string $comment_status 202 * @return int 205 * Gets the number of comments to display per page. 206 * 207 * @param string $comment_status Comment status. 208 * @return int Comments per page. 203 209 */ 204 210 public function get_per_page( $comment_status = 'all' ) { … … 217 223 218 224 /** 225 * Displays a message when no comments are found. 226 * 219 227 * @global string $comment_status 220 228 */ … … 232 240 233 241 /** 234 * @global int $post_id 242 * Returns an array of comment status links. 243 * 244 * @global int $post_id 235 245 * @global string $comment_status 236 246 * @global string $comment_type 247 * 248 * @return array<string, string> Comment status HTML links keyed by view. 237 249 */ 238 250 protected function get_views() { … … 355 367 356 368 /** 357 * @global string $comment_status 358 * 359 * @return array 369 * Gets the available bulk actions for the comments list. 370 * 371 * @global string $comment_status Current comment status filter. 372 * 373 * @return array<string, string> Bulk action labels keyed by action name. 360 374 */ 361 375 protected function get_bulk_actions() { … … 396 410 397 411 /** 412 * Displays extra controls between bulk actions and pagination. 413 * 398 414 * @global string $comment_status 399 415 * @global string $comment_type 400 416 * 401 * @param string $which 417 * @param string $which The location of the extra table nav markup: Either 'top' or 'bottom'. 402 418 */ 403 419 protected function extra_tablenav( $which ) { … … 454 470 455 471 /** 456 * @return string|false 472 * Gets the current action selected from the bulk actions dropdown. 473 * 474 * @return string|false Current action or false if none. 457 475 */ 458 476 public function current_action() { … … 465 483 466 484 /** 485 * Gets the list of columns. 486 * 467 487 * @global int $post_id 468 488 * … … 548 568 549 569 /** 550 * @return array 570 * Gets a list of sortable columns. 571 * 572 * @return array<string, string|array> The sortable columns. 551 573 */ 552 574 protected function get_sortable_columns() { … … 639 661 640 662 /** 663 * Generates content for a single row of the table. 664 * 641 665 * @global WP_Post $post Global post object. 642 666 * @global WP_Comment $comment Global comment object. 643 667 * 644 * @param WP_Comment $item 668 * @param WP_Comment $item The comment object. 645 669 */ 646 670 public function single_row( $item ) { … … 918 942 919 943 /** 944 * Outputs the checkbox column. 945 * 920 946 * @since 5.9.0 Renamed `$comment` to `$item` to match parent class for PHP 8 named parameter support. 921 947 * … … 942 968 943 969 /** 970 * Outputs the comment column. 971 * 944 972 * @param WP_Comment $comment The comment object. 945 973 */ … … 981 1009 982 1010 /** 1011 * Outputs the author column. 1012 * 983 1013 * @global string $comment_status 984 1014 * … … 1040 1070 1041 1071 /** 1072 * Outputs the date column. 1073 * 1042 1074 * @param WP_Comment $comment The comment object. 1043 1075 */ … … 1068 1100 1069 1101 /** 1102 * Outputs the response column. 1103 * 1070 1104 * @param WP_Comment $comment The comment object. 1071 1105 */ … … 1114 1148 1115 1149 /** 1150 * Outputs the default column. 1151 * 1116 1152 * @since 5.9.0 Renamed `$comment` to `$item` to match parent class for PHP 8 named parameter support. 1117 1153 *
Note: See TracChangeset
for help on using the changeset viewer.