Apply get_edit_post_link filter. Props prettyboymp. fixes #10579
git-svn-id: http://svn.automattic.com/wordpress/trunk@11795 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f0618619e1
commit
00ee55a47f
|
@ -701,7 +701,7 @@ function get_edit_post_link( $id = 0, $context = 'display' ) {
|
||||||
break;
|
break;
|
||||||
default :
|
default :
|
||||||
if ( !current_user_can( 'edit_post', $post->ID ) )
|
if ( !current_user_can( 'edit_post', $post->ID ) )
|
||||||
return;
|
return apply_filters( 'get_edit_post_link', '', $post->ID, $context );;
|
||||||
$file = 'post';
|
$file = 'post';
|
||||||
$var = 'post';
|
$var = 'post';
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue