- Timestamp:
- 09/07/2021 07:23:00 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 );
Note: See TracChangeset
for help on using the changeset viewer.