Changeset 51735
- Timestamp:
- 09/07/2021 06:18:10 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
r51734 r51735 869 869 870 870 /** 871 * @param WP_Comment $comment The comment object. 872 */ 873 public function column_cb( $comment ) { 871 * @since 5.9.0 Renamed `$comment` to `$item` to match parent class for PHP 8 named parameter support. 872 * 873 * @param WP_Comment $item The comment object. 874 */ 875 public function column_cb( $item ) { 876 // Restores the more descriptive, specific name for use within this method. 877 $comment = $item; 878 874 879 if ( $this->user_can ) { 875 880 ?> -
trunk/src/wp-admin/includes/class-wp-links-list-table.php
r51734 r51735 167 167 * 168 168 * @since 4.3.0 169 * 170 * @param object $link The current link object. 171 */ 172 public function column_cb( $link ) { 169 * @since 5.9.0 Renamed `$link` to `$item` to match parent class for PHP 8 named parameter support. 170 * 171 * @param object $item The current link object. 172 */ 173 public function column_cb( $item ) { 174 // Restores the more descriptive, specific name for use within this method. 175 $link = $item; 176 173 177 ?> 174 178 <label class="screen-reader-text" for="cb-select-<?php echo $link->link_id; ?>"> -
trunk/src/wp-admin/includes/class-wp-media-list-table.php
r51734 r51735 388 388 * 389 389 * @since 4.3.0 390 * 391 * @param WP_Post $post The current WP_Post object. 392 */ 393 public function column_cb( $post ) { 390 * @since 5.9.0 Renamed `$post` to `$item` to match parent class for PHP 8 named parameter support. 391 * 392 * @param WP_Post $item The current WP_Post object. 393 */ 394 public function column_cb( $item ) { 395 // Restores the more descriptive, specific name for use within this method. 396 $post = $item; 397 394 398 if ( current_user_can( 'edit_post', $post->ID ) ) { 395 399 ?> -
trunk/src/wp-admin/includes/class-wp-ms-sites-list-table.php
r51734 r51735 397 397 * 398 398 * @since 4.3.0 399 * 400 * @param array $blog Current site. 401 */ 402 public function column_cb( $blog ) { 399 * @since 5.9.0 Renamed `$blog` to `$item` to match parent class for PHP 8 named parameter support. 400 * 401 * @param array $item Current site. 402 */ 403 public function column_cb( $item ) { 404 // Restores the more descriptive, specific name for use within this method. 405 $blog = $item; 406 403 407 if ( ! is_main_site( $blog['blog_id'] ) ) : 404 408 $blogname = untrailingslashit( $blog['domain'] . $blog['path'] ); -
trunk/src/wp-admin/includes/class-wp-ms-themes-list-table.php
r51734 r51735 506 506 * 507 507 * @since 4.3.0 508 * 509 * @param WP_Theme $theme The current WP_Theme object. 510 */ 511 public function column_cb( $theme ) { 508 * @since 5.9.0 Renamed `$theme` to `$item` to match parent class for PHP 8 named parameter support. 509 * 510 * @param WP_Theme $item The current WP_Theme object. 511 */ 512 public function column_cb( $item ) { 513 // Restores the more descriptive, specific name for use within this method. 514 $theme = $item; 512 515 $checkbox_id = 'checkbox_' . md5( $theme->get( 'Name' ) ); 513 516 ?> -
trunk/src/wp-admin/includes/class-wp-ms-users-list-table.php
r51734 r51735 228 228 * 229 229 * @since 4.3.0 230 * 231 * @param WP_User $user The current WP_User object. 232 */ 233 public function column_cb( $user ) { 230 * @since 5.9.0 Renamed `$user` to `$item` to match parent class for PHP 8 named parameter support. 231 * 232 * @param WP_User $item The current WP_User object. 233 */ 234 public function column_cb( $item ) { 235 // Restores the more descriptive, specific name for use within this method. 236 $user = $item; 237 234 238 if ( is_super_admin( $user->ID ) ) { 235 239 return; -
trunk/src/wp-admin/includes/class-wp-posts-list-table.php
r51734 r51735 972 972 * 973 973 * @since 4.3.0 974 * 975 * @param WP_Post $post The current WP_Post object. 976 */ 977 public function column_cb( $post ) { 974 * @since 5.9.0 Renamed `$post` to `$item` to match parent class for PHP 8 named parameter support. 975 * 976 * @param WP_Post $item The current WP_Post object. 977 */ 978 public function column_cb( $item ) { 979 // Restores the more descriptive, specific name for use within this method. 980 $post = $item; 978 981 $show = current_user_can( 'edit_post', $post->ID ); 979 982 -
trunk/src/wp-admin/includes/class-wp-terms-list-table.php
r51734 r51735 365 365 366 366 /** 367 * @param WP_Term $tag Term object. 367 * @since 5.9.0 Renamed `$tag` to `$item` to match parent class for PHP 8 named parameter support. 368 * 369 * @param WP_Term $item Term object. 368 370 * @return string 369 371 */ 370 public function column_cb( $tag ) { 372 public function column_cb( $item ) { 373 // Restores the more descriptive, specific name for use within this method. 374 $tag = $item; 375 371 376 if ( current_user_can( 'delete_term', $tag->term_id ) ) { 372 377 return sprintf(
Note: See TracChangeset
for help on using the changeset viewer.