- Timestamp:
- 05/29/2015 08:16:22 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-comments-list-table.php
r32651 r32654 54 54 } 55 55 56 /** 57 * @return bool 58 */ 56 59 public function ajax_user_can() { 57 60 return current_user_can('edit_posts'); … … 159 162 * @param string $comment_status The comment status name. Default 'All'. 160 163 */ 161 $comments_per_page = apply_filters( 'comments_per_page', $comments_per_page, $comment_status ); 162 return $comments_per_page; 164 return apply_filters( 'comments_per_page', $comments_per_page, $comment_status ); 163 165 } 164 166 … … 231 233 * Accepts 'All', 'Pending', 'Approved', 'Spam', and 'Trash'. 232 234 */ 233 $status_links = apply_filters( 'comment_status_links', $status_links ); 234 return $status_links; 235 return apply_filters( 'comment_status_links', $status_links ); 235 236 } 236 237 … … 238 239 * 239 240 * @global string $comment_status 241 * 242 * @return array 240 243 */ 241 244 protected function get_bulk_actions() { … … 267 270 * @global string $comment_status 268 271 * @global string $comment_type 272 * 269 273 * @param string $which 270 274 */ … … 322 326 } 323 327 328 /** 329 * @return string|false 330 */ 324 331 public function current_action() { 325 332 if ( isset( $_REQUEST['delete_all'] ) || isset( $_REQUEST['delete_all2'] ) ) … … 332 339 * 333 340 * @global int $post_id 341 * 334 342 * @return array 335 343 */ … … 351 359 } 352 360 361 /** 362 * 363 * @return array 364 */ 353 365 protected function get_sortable_columns() { 354 366 return array( … … 407 419 * @global WP_Post $post 408 420 * @global object $comment 421 * 409 422 * @param object $a_comment 410 423 */ … … 438 451 * @param string $primary Primary column name 439 452 * 440 * @return string 453 * @return string|void 441 454 */ 442 455 protected function handle_row_actions( $comment, $column_name, $primary ) { 443 456 global $comment_status; 444 457 445 458 if ( ! $this->user_can ) { 446 459 return; 447 448 460 } 449 461 … … 543 555 } 544 556 557 /** 558 * 559 * @param object $comment 560 */ 545 561 public function column_cb( $comment ) { 546 562 if ( $this->user_can ) { ?> … … 554 570 * 555 571 * @global string $comment_status 572 * 556 573 * @param object $comment 557 574 */ … … 602 619 * 603 620 * @global string $comment_status 621 * 604 622 * @param object $comment 605 623 */ … … 635 653 } 636 654 655 /** 656 * 657 * @return string 658 */ 637 659 public function column_date() { 638 660 return get_comment_date( __( 'Y/m/d \a\t g:i a' ) ); … … 667 689 } 668 690 691 /** 692 * 693 * @param object $comment 694 * @param string $column_name 695 */ 669 696 public function column_default( $comment, $column_name ) { 670 697 /** … … 692 719 class WP_Post_Comments_List_Table extends WP_Comments_List_Table { 693 720 721 /** 722 * 723 * @return array 724 */ 694 725 protected function get_column_info() { 695 726 return array( … … 704 735 } 705 736 737 /** 738 * 739 * @return array 740 */ 706 741 protected function get_table_classes() { 707 742 $classes = parent::get_table_classes(); … … 710 745 } 711 746 747 /** 748 * 749 * @param bool $output_empty 750 */ 712 751 public function display( $output_empty = false ) { 713 752 $singular = $this->_args['singular']; … … 728 767 } 729 768 769 /** 770 * 771 * @param bool $comment_status 772 * @return int 773 */ 730 774 public function get_per_page( $comment_status = false ) { 731 775 return 10;
Note: See TracChangeset
for help on using the changeset viewer.