Pass context to get_edit_post_link filter. Props mdawaffe. fixes #7424 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@8478 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ec69e512e4
commit
79da5c32a9
@ -479,7 +479,7 @@ function get_edit_post_link( $id = 0, $context = 'display' ) {
|
||||
break;
|
||||
endswitch;
|
||||
|
||||
return apply_filters( 'get_edit_post_link', admin_url("$file.php?{$action}$var=$post->ID"), $post->ID );
|
||||
return apply_filters( 'get_edit_post_link', admin_url("$file.php?{$action}$var=$post->ID"), $post->ID, $context );
|
||||
}
|
||||
|
||||
function edit_post_link( $link = 'Edit This', $before = '', $after = '' ) {
|
||||
|
Loading…
Reference in New Issue
Block a user