Skip to content

Commit

Permalink
Merge pull request #1245 from 10up/fix/ltrim-deprecation
Browse files Browse the repository at this point in the history
Fix ltrim deprecation warning in 8.1
  • Loading branch information
dkotter authored Aug 15, 2024
2 parents bbf97f1 + 01f98ca commit 02640a5
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 02640a5

Please sign in to comment.