Apply get_edit_post_link filter. Props prettyboymp. fixes #10579
git-svn-id: https://develop.svn.wordpress.org/trunk@11795 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
962116a319
commit
e01eb2fd26
@ -701,7 +701,7 @@ function get_edit_post_link( $id = 0, $context = 'display' ) {
|
||||
break;
|
||||
default :
|
||||
if ( !current_user_can( 'edit_post', $post->ID ) )
|
||||
return;
|
||||
return apply_filters( 'get_edit_post_link', '', $post->ID, $context );;
|
||||
$file = 'post';
|
||||
$var = 'post';
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user