Pass context to get_edit_post_link filter. Props mdawaffe. fixes #7424 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@8478 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e30000d174
commit
7339da643f
|
@ -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