Skip to content

Commit

Permalink
Merge branch 'trunk' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
dkotter committed Aug 15, 2024
2 parents 16db37d + 02640a5 commit f371c62
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion includes/classes/PullListTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,12 @@ public function column_name( $item ) {

if ( ! empty( $new_post ) ) {
$actions = [
'edit' => '<a href="' . esc_url( get_edit_post_link( $new_post_id ) ) . '">' . esc_html__( 'Edit', 'distributor' ) . '</a>',
'view' => '<a href="' . esc_url( get_permalink( $new_post_id ) ) . '">' . esc_html__( 'View', 'distributor' ) . '</a>',
];

if ( current_user_can( 'edit_post', $new_post_id ) ) {
$actions['edit'] = '<a href="' . esc_url( get_edit_post_link( $new_post_id ) ) . '">' . esc_html__( 'Edit', 'distributor' ) . '</a>';
}
}
}

Expand Down

0 comments on commit f371c62

Please sign in to comment.