Ticket #44017: patch.diff
File patch.diff, 477 bytes (added by , 5 years ago) |
---|
-
wp-includes/link-template.php
diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index 815c539..bae6ed9 100644
a b function get_edit_post_link( $id = 0, $context = 'display' ) { 1350 1350 return; 1351 1351 } 1352 1352 1353 if ( ! current_user_can( 'edit_post', $post->ID) ) {1353 if ( ! ( current_user_can( 'edit_post', $post->ID ) || apply_filters( 'can_view_edit_post_link', false , $post->ID ) ) ) { 1354 1354 return; 1355 1355 } 1356 1356