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:
Ryan Boren 2008-07-28 23:39:15 +00:00
parent ec69e512e4
commit 79da5c32a9
1 changed files with 1 additions and 1 deletions

View File

@ -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 = '' ) {