Changeset 51737
- Timestamp:
- 09/07/2021 07:23:00 PM (3 years ago)
- Location:
- trunk/src/wp-admin/includes
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-comments-list-table.php
r51735 r51737 652 652 * 653 653 * @since 4.3.0 654 * @since 5.9.0 Renamed `$comment` to `$item` to match parent class for PHP 8 named parameter support. 654 655 * 655 656 * @global string $comment_status Status for the current listed comments. 656 657 * 657 * @param WP_Comment $ commentThe comment object.658 * @param WP_Comment $item The comment object. 658 659 * @param string $column_name Current column name. 659 660 * @param string $primary Primary column name. … … 662 663 * or if the current user cannot edit the comment. 663 664 */ 664 protected function handle_row_actions( $ comment, $column_name, $primary ) {665 protected function handle_row_actions( $item, $column_name, $primary ) { 665 666 global $comment_status; 666 667 … … 673 674 } 674 675 676 // Restores the more descriptive, specific name for use within this method. 677 $comment = $item; 675 678 $the_comment_status = wp_get_comment_status( $comment ); 676 679 -
trunk/src/wp-admin/includes/class-wp-links-list-table.php
r51735 r51737 318 318 * 319 319 * @since 4.3.0 320 * 321 * @param object $link Link being acted upon. 320 * @since 5.9.0 Renamed `$link` to `$item` to match parent class for PHP 8 named parameter support. 321 * 322 * @param object $item Link being acted upon. 322 323 * @param string $column_name Current column name. 323 324 * @param string $primary Primary column name. … … 325 326 * if the current column is not the primary column. 326 327 */ 327 protected function handle_row_actions( $ link, $column_name, $primary ) {328 protected function handle_row_actions( $item, $column_name, $primary ) { 328 329 if ( $primary !== $column_name ) { 329 330 return ''; 330 331 } 331 332 333 // Restores the more descriptive, specific name for use within this method. 334 $link = $item; 332 335 $edit_link = get_edit_bookmark_link( $link ); 333 336 -
trunk/src/wp-admin/includes/class-wp-media-list-table.php
r51735 r51737 828 828 * 829 829 * @since 4.3.0 830 * 831 * @param WP_Post $post Attachment being acted upon. 830 * @since 5.9.0 Renamed `$post` to `$item` to match parent class for PHP 8 named parameter support. 831 * 832 * @param WP_Post $item Attachment being acted upon. 832 833 * @param string $column_name Current column name. 833 834 * @param string $primary Primary column name. … … 835 836 * if the current column is not the primary column. 836 837 */ 837 protected function handle_row_actions( $ post, $column_name, $primary ) {838 protected function handle_row_actions( $item, $column_name, $primary ) { 838 839 if ( $primary !== $column_name ) { 839 840 return ''; … … 841 842 842 843 $att_title = _draft_or_post_title(); 843 844 return $this->row_actions( $this->_get_row_actions( $post, $att_title ) ); 844 $actions = $this->_get_row_actions( 845 $item, // WP_Post object for an attachment. 846 $att_title 847 ); 848 849 return $this->row_actions( $actions ); 845 850 } 846 851 } -
trunk/src/wp-admin/includes/class-wp-ms-sites-list-table.php
r51735 r51737 669 669 * 670 670 * @since 4.3.0 671 * 672 * @param array $blog Site being acted upon. 671 * @since 5.9.0 Renamed `$blog` to `$item` to match parent class for PHP 8 named parameter support. 672 * 673 * @param array $item Site being acted upon. 673 674 * @param string $column_name Current column name. 674 675 * @param string $primary Primary column name. … … 676 677 * if the current column is not the primary column. 677 678 */ 678 protected function handle_row_actions( $ blog, $column_name, $primary ) {679 protected function handle_row_actions( $item, $column_name, $primary ) { 679 680 if ( $primary !== $column_name ) { 680 681 return ''; 681 682 } 682 683 684 // Restores the more descriptive, specific name for use within this method. 685 $blog = $item; 683 686 $blogname = untrailingslashit( $blog['domain'] . $blog['path'] ); 684 687 -
trunk/src/wp-admin/includes/class-wp-ms-users-list-table.php
r51735 r51737 500 500 * 501 501 * @since 4.3.0 502 * 503 * @param WP_User $user User being acted upon. 502 * @since 5.9.0 Renamed `$user` to `$item` to match parent class for PHP 8 named parameter support. 503 * 504 * @param WP_User $item User being acted upon. 504 505 * @param string $column_name Current column name. 505 506 * @param string $primary Primary column name. … … 507 508 * if the current column is not the primary column. 508 509 */ 509 protected function handle_row_actions( $ user, $column_name, $primary ) {510 protected function handle_row_actions( $item, $column_name, $primary ) { 510 511 if ( $primary !== $column_name ) { 511 512 return ''; 512 513 } 513 514 515 // Restores the more descriptive, specific name for use within this method. 516 $user = $item; 514 517 $super_admins = get_super_admins(); 515 518 -
trunk/src/wp-admin/includes/class-wp-posts-list-table.php
r51735 r51737 1403 1403 * 1404 1404 * @since 4.3.0 1405 * 1406 * @param WP_Post $post Post being acted upon. 1405 * @since 5.9.0 Renamed `$post` to `$item` to match parent class for PHP 8 named parameter support. 1406 * 1407 * @param WP_Post $item Post being acted upon. 1407 1408 * @param string $column_name Current column name. 1408 1409 * @param string $primary Primary column name. … … 1410 1411 * if the current column is not the primary column. 1411 1412 */ 1412 protected function handle_row_actions( $ post, $column_name, $primary ) {1413 protected function handle_row_actions( $item, $column_name, $primary ) { 1413 1414 if ( $primary !== $column_name ) { 1414 1415 return ''; 1415 1416 } 1416 1417 1418 // Restores the more descriptive, specific name for use within this method. 1419 $post = $item; 1417 1420 $post_type_object = get_post_type_object( $post->post_type ); 1418 1421 $can_edit_post = current_user_can( 'edit_post', $post->ID ); -
trunk/src/wp-admin/includes/class-wp-terms-list-table.php
r51735 r51737 462 462 * 463 463 * @since 4.3.0 464 * 465 * @param WP_Term $tag Tag being acted upon. 464 * @since 5.9.0 Renamed `$tag` to `$item` to match parent class for PHP 8 named parameter support. 465 * 466 * @param WP_Term $item Tag being acted upon. 466 467 * @param string $column_name Current column name. 467 468 * @param string $primary Primary column name. … … 469 470 * if the current column is not the primary column. 470 471 */ 471 protected function handle_row_actions( $ tag, $column_name, $primary ) {472 protected function handle_row_actions( $item, $column_name, $primary ) { 472 473 if ( $primary !== $column_name ) { 473 474 return ''; 474 475 } 475 476 477 // Restores the more descriptive, specific name for use within this method. 478 $tag = $item; 476 479 $taxonomy = $this->screen->taxonomy; 477 480 $tax = get_taxonomy( $taxonomy );
Note: See TracChangeset
for help on using the changeset viewer.