Changeset 51728
- Timestamp:
- 09/02/2021 10:25:58 PM (3 years ago)
- Location:
- trunk/src/wp-admin/includes
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-comments-list-table.php
r50805 r51728 1048 1048 1049 1049 /** 1050 * @param WP_Comment $comment The comment object. 1050 * @since 5.9.0 Renamed `$comment` to `$item` to match parent class for PHP 8 named param. 1051 * 1052 * @param WP_Comment $item The comment object. 1051 1053 * @param string $column_name The custom column's name. 1052 1054 */ 1053 public function column_default( $ comment, $column_name ) {1055 public function column_default( $item, $column_name ) { 1054 1056 /** 1055 1057 * Fires when the default column output is displayed for a single row. … … 1060 1062 * @param int $comment_id The custom column's unique ID number. 1061 1063 */ 1062 do_action( 'manage_comments_custom_column', $column_name, $ comment->comment_ID );1064 do_action( 'manage_comments_custom_column', $column_name, $item->comment_ID ); 1063 1065 } 1064 1066 } -
trunk/src/wp-admin/includes/class-wp-links-list-table.php
r50120 r51728 280 280 * 281 281 * @since 4.3.0 282 * 283 * @param object $link Link object. 282 * @since 5.9.0 Renamed `$link` to `$item` to match parent class for PHP 8 named param. 283 * 284 * @param object $item Link object. 284 285 * @param string $column_name Current column name. 285 286 */ 286 public function column_default( $ link, $column_name ) {287 public function column_default( $item, $column_name ) { 287 288 /** 288 289 * Fires for each registered custom link column. … … 293 294 * @param int $link_id Link ID. 294 295 */ 295 do_action( 'manage_link_custom_column', $column_name, $ link->link_id );296 do_action( 'manage_link_custom_column', $column_name, $item->link_id ); 296 297 } 297 298 -
trunk/src/wp-admin/includes/class-wp-media-list-table.php
r51638 r51728 595 595 * 596 596 * @since 4.3.0 597 * 598 * @param WP_Post $post The current WP_Post object. 597 * @since 5.9.0 Renamed `$post` to `$item` to match parent class for PHP 8 named param. 598 * 599 * @param WP_Post $item The current WP_Post object. 599 600 * @param string $column_name Current column name. 600 601 */ 601 public function column_default( $post, $column_name ) { 602 public function column_default( $item, $column_name ) { 603 // Restores the more descriptive, specific name for use within this method. 604 $post = $item; 605 602 606 if ( 'categories' === $column_name ) { 603 607 $taxonomy = 'category'; -
trunk/src/wp-admin/includes/class-wp-ms-sites-list-table.php
r49197 r51728 561 561 * 562 562 * @since 4.3.0 563 * 564 * @param array $blog Current site. 563 * @since 5.9.0 Renamed `$blog` to `$item` to match parent class for PHP 8 named param. 564 * 565 * @param array $item Current site. 565 566 * @param string $column_name Current column name. 566 567 */ 567 public function column_default( $ blog, $column_name ) {568 public function column_default( $item, $column_name ) { 568 569 /** 569 570 * Fires for each registered custom column in the Sites list table. … … 574 575 * @param int $blog_id The site ID. 575 576 */ 576 do_action( 'manage_sites_custom_column', $column_name, $ blog['blog_id'] );577 do_action( 'manage_sites_custom_column', $column_name, $item['blog_id'] ); 577 578 } 578 579 -
trunk/src/wp-admin/includes/class-wp-ms-themes-list-table.php
r50978 r51728 856 856 * 857 857 * @since 4.3.0 858 * 859 * @param WP_Theme $theme The current WP_Theme object. 858 * @since 5.9.0 Renamed `$theme` to `$item` to match parent class for PHP 8 named param. 859 * 860 * @param WP_Theme $item The current WP_Theme object. 860 861 * @param string $column_name The current column name. 861 862 */ 862 public function column_default( $theme, $column_name ) { 863 $stylesheet = $theme->get_stylesheet(); 864 863 public function column_default( $item, $column_name ) { 865 864 /** 866 865 * Fires inside each custom column of the Multisite themes list table. … … 872 871 * @param WP_Theme $theme Current WP_Theme object. 873 872 */ 874 do_action( 'manage_themes_custom_column', $column_name, $stylesheet, $theme ); 873 do_action( 874 'manage_themes_custom_column', 875 $column_name, 876 $item->get_stylesheet(), // Directory name of the theme. 877 $item // Theme object. 878 ); 875 879 } 876 880 -
trunk/src/wp-admin/includes/class-wp-ms-users-list-table.php
r49183 r51728 443 443 * 444 444 * @since 4.3.0 445 * 446 * @param WP_User $user The current WP_User object. 445 * @since 5.9.0 Renamed `$user` to `$item` to match parent class for PHP 8 named param. 446 * 447 * @param WP_User $item The current WP_User object. 447 448 * @param string $column_name The current column name. 448 449 */ 449 public function column_default( $ user, $column_name ) {450 public function column_default( $item, $column_name ) { 450 451 /** This filter is documented in wp-admin/includes/class-wp-users-list-table.php */ 451 echo apply_filters( 'manage_users_custom_column', '', $column_name, $user->ID ); 452 echo apply_filters( 453 'manage_users_custom_column', 454 '', // Custom column output. Default empty. 455 $column_name, 456 $item->ID // User ID. 457 ); 452 458 } 453 459 -
trunk/src/wp-admin/includes/class-wp-posts-list-table.php
r51520 r51728 1236 1236 * 1237 1237 * @since 4.3.0 1238 * 1239 * @param WP_Post $post The current WP_Post object. 1238 * @since 5.9.0 Renamed `$post` to `$item` to match parent class for PHP 8 named param. 1239 * 1240 * @param WP_Post $item The current WP_Post object. 1240 1241 * @param string $column_name The current column name. 1241 1242 */ 1242 public function column_default( $post, $column_name ) { 1243 public function column_default( $item, $column_name ) { 1244 // Restores the more descriptive, specific name for use within this method. 1245 $post = $item; 1246 1243 1247 if ( 'categories' === $column_name ) { 1244 1248 $taxonomy = 'category'; -
trunk/src/wp-admin/includes/class-wp-terms-list-table.php
r50780 r51728 621 621 622 622 /** 623 * @param WP_Term $tag Term object. 623 * @since 5.9.0 Renamed `$tag` to `$item` to match parent class for PHP 8 named param. 624 * 625 * @param WP_Term $item Term object. 624 626 * @param string $column_name Name of the column. 625 627 * @return string 626 628 */ 627 public function column_default( $ tag, $column_name ) {629 public function column_default( $item, $column_name ) { 628 630 /** 629 631 * Filters the displayed columns in the terms list table. … … 639 641 * @since 2.8.0 640 642 * 641 * @param string $string Blank string.643 * @param string $string Custom column output. Default empty. 642 644 * @param string $column_name Name of the column. 643 645 * @param int $term_id Term ID. 644 646 */ 645 return apply_filters( "manage_{$this->screen->taxonomy}_custom_column", '', $column_name, $ tag->term_id );647 return apply_filters( "manage_{$this->screen->taxonomy}_custom_column", '', $column_name, $item->term_id ); 646 648 } 647 649
Note: See TracChangeset
for help on using the changeset viewer.